Class: Synapsis::Error
- Inherits:
-
Object
- Object
- Synapsis::Error
- Defined in:
- lib/synapsis/error.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(error_params) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error_params) ⇒ Error
Returns a new instance of Error.
4 5 6 |
# File 'lib/synapsis/error.rb', line 4 def initialize(error_params) @reason = error_params['reason'] end |
Instance Attribute Details
#reason ⇒ Object
Returns the value of attribute reason.
2 3 4 |
# File 'lib/synapsis/error.rb', line 2 def reason @reason end |