Class: AppStoreLookup::AppGenre

Inherits:
Object
  • Object
show all
Defined in:
lib/app_store_lookup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AppGenre

Returns a new instance of AppGenre.



71
72
73
74
# File 'lib/app_store_lookup.rb', line 71

def initialize(attributes = {})
	@name = attributes[:name]
	@id = attributes[:id].to_i
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



69
70
71
# File 'lib/app_store_lookup.rb', line 69

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



69
70
71
# File 'lib/app_store_lookup.rb', line 69

def name
  @name
end