Class: Browserbeam::StepError
- Inherits:
-
Struct
- Object
- Struct
- Browserbeam::StepError
- Defined in:
- lib/browserbeam/types.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#code ⇒ Object
Returns the value of attribute code.
-
#context ⇒ Object
Returns the value of attribute context.
-
#message ⇒ Object
Returns the value of attribute message.
-
#step ⇒ Object
Returns the value of attribute step.
Class Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
69 70 71 |
# File 'lib/browserbeam/types.rb', line 69 def action @action end |
#code ⇒ Object
Returns the value of attribute code
69 70 71 |
# File 'lib/browserbeam/types.rb', line 69 def code @code end |
#context ⇒ Object
Returns the value of attribute context
69 70 71 |
# File 'lib/browserbeam/types.rb', line 69 def context @context end |
#message ⇒ Object
Returns the value of attribute message
69 70 71 |
# File 'lib/browserbeam/types.rb', line 69 def @message end |
#step ⇒ Object
Returns the value of attribute step
69 70 71 |
# File 'lib/browserbeam/types.rb', line 69 def step @step end |
Class Method Details
.from_hash(data) ⇒ Object
70 71 72 73 74 75 76 77 78 79 |
# File 'lib/browserbeam/types.rb', line 70 def self.from_hash(data) return nil unless data.is_a?(Hash) new( step: data["step"] || 0, action: data["action"] || "", code: data["code"] || "", message: data["message"] || "", context: data["context"] || {}, ) end |