Class: TwicasStream::TwicasApiObject::App

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elements = {}) ⇒ App

Returns a new instance of App.



9
10
11
12
13
14
15
# File 'lib/twicas_stream/twicas_api_object/app.rb', line 9

def initialize elements = {}
	@object = {
				:client_id     => elements['client_id'],
				:name          => elements['name'],
				:owner_user_id => elements['owner_user_id']
			}
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



7
8
9
# File 'lib/twicas_stream/twicas_api_object/app.rb', line 7

def object
  @object
end