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.



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

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/ebisu/models/brands.rb', line 11

def id
  @id
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/ebisu/models/brands.rb', line 7

def name
  @name
end