Class: DatagroutConduit::GuideState
- Inherits:
-
Struct
- Object
- Struct
- DatagroutConduit::GuideState
- Defined in:
- lib/datagrout_conduit/types.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#result ⇒ Object
Returns the value of attribute result.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#step ⇒ Object
Returns the value of attribute step.
Class Method Summary collapse
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options
185 186 187 |
# File 'lib/datagrout_conduit/types.rb', line 185 def @options end |
#result ⇒ Object
Returns the value of attribute result
185 186 187 |
# File 'lib/datagrout_conduit/types.rb', line 185 def result @result end |
#session_id ⇒ Object
Returns the value of attribute session_id
185 186 187 |
# File 'lib/datagrout_conduit/types.rb', line 185 def session_id @session_id end |
#status ⇒ Object
Returns the value of attribute status
185 186 187 |
# File 'lib/datagrout_conduit/types.rb', line 185 def status @status end |
#step ⇒ Object
Returns the value of attribute step
185 186 187 |
# File 'lib/datagrout_conduit/types.rb', line 185 def step @step end |
Class Method Details
.from_hash(hash) ⇒ Object
186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/datagrout_conduit/types.rb', line 186 def self.from_hash(hash) hash = hash.transform_keys(&:to_s) opts = hash["options"]&.map { |o| GuideOption.from_hash(o) } new( session_id: hash["session_id"] || hash["sessionId"], status: hash["status"], options: opts, result: hash["result"], step: hash["step"] ) end |