Class: Ebisu::Brands
- Inherits:
-
Object
- Object
- Ebisu::Brands
- Defined in:
- lib/ebisu/models/brands.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(brands) ⇒ Brands
constructor
A new instance of Brands.
Constructor Details
#initialize(brands) ⇒ Brands
Returns a new instance of Brands.
12 13 14 15 |
# File 'lib/ebisu/models/brands.rb', line 12 def initialize(brands) @id = brands.dig('id') @name = brands.dig('name') end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/ebisu/models/brands.rb', line 11 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/ebisu/models/brands.rb', line 7 def name @name end |