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