Class: Ebisu::Brands

Inherits:
Object
  • Object
show all
Defined in:
lib/ebisu/models/brands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/ebisu/models/brands.rb', line 5

def name
  @name
end

#pathObject

Returns the value of attribute path.



9
10
11
# File 'lib/ebisu/models/brands.rb', line 9

def path
  @path
end