Class: Baseh::Baseh::InspectResult
- Inherits:
-
Struct
- Object
- Struct
- Baseh::Baseh::InspectResult
- 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
-
#canonical_code ⇒ Object
Returns the value of attribute canonical_code.
-
#id ⇒ Object
Returns the value of attribute id.
-
#progress ⇒ Object
Returns the value of attribute progress.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#state ⇒ Object
Returns the value of attribute state.
-
#typed ⇒ Object
Returns the value of attribute typed.
Instance Attribute Details
#canonical_code ⇒ Object
Returns the value of attribute canonical_code
38 39 40 |
# File 'lib/baseh/baseh.rb', line 38 def canonical_code @canonical_code end |
#id ⇒ Object
Returns the value of attribute id
38 39 40 |
# File 'lib/baseh/baseh.rb', line 38 def id @id end |
#progress ⇒ Object
Returns the value of attribute progress
38 39 40 |
# File 'lib/baseh/baseh.rb', line 38 def progress @progress end |
#reason ⇒ Object
Returns the value of attribute reason
38 39 40 |
# File 'lib/baseh/baseh.rb', line 38 def reason @reason end |
#state ⇒ Object
Returns the value of attribute state
38 39 40 |
# File 'lib/baseh/baseh.rb', line 38 def state @state end |
#typed ⇒ Object
Returns the value of attribute typed
38 39 40 |
# File 'lib/baseh/baseh.rb', line 38 def typed @typed end |