Class: AppStoreLookup::AppGenre
- Inherits:
-
Object
- Object
- AppStoreLookup::AppGenre
- Defined in:
- lib/app_store_lookup.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AppGenre
constructor
A new instance of AppGenre.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
69 70 71 |
# File 'lib/app_store_lookup.rb', line 69 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
69 70 71 |
# File 'lib/app_store_lookup.rb', line 69 def name @name end |