Class: Baseh::Baseh::InspectResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/baseh/baseh.rb

Overview

Result of inspect (spec 12.5). #state is one of "empty", "typing", "bad-char", "too-long", "invalid", "valid". Payload fields are present exactly when the state carries them: #typed and #progress for "typing", #reason for "invalid", #id and #canonical_code for "valid".

Instance Attribute Summary collapse

Instance Attribute Details

#canonical_codeObject

Returns the value of attribute canonical_code

Returns:

  • (Object)

    the current value of canonical_code



38
39
40
# File 'lib/baseh/baseh.rb', line 38

def canonical_code
  @canonical_code
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



38
39
40
# File 'lib/baseh/baseh.rb', line 38

def id
  @id
end

#progressObject

Returns the value of attribute progress

Returns:

  • (Object)

    the current value of progress



38
39
40
# File 'lib/baseh/baseh.rb', line 38

def progress
  @progress
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



38
39
40
# File 'lib/baseh/baseh.rb', line 38

def reason
  @reason
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



38
39
40
# File 'lib/baseh/baseh.rb', line 38

def state
  @state
end

#typedObject

Returns the value of attribute typed

Returns:

  • (Object)

    the current value of typed



38
39
40
# File 'lib/baseh/baseh.rb', line 38

def typed
  @typed
end