Class: TwicasStream::TwicasApiObject::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/twicas_stream/twicas_api_object/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objectObject (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