Class: TwicasStream::TwicasApiObject::Error
- Inherits:
-
Object
- Object
- TwicasStream::TwicasApiObject::Error
- Defined in:
- lib/twicas_stream/twicas_api_object/error.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(elements = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(elements = {}) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 14 15 |
# File 'lib/twicas_stream/twicas_api_object/error.rb', line 9 def initialize elements = {} @object = { :code => elements['code'], :message => elements['message'], :details => elements['details'] } end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
7 8 9 |
# File 'lib/twicas_stream/twicas_api_object/error.rb', line 7 def object @object end |