Class: BestBuy::BaseCategory

Inherits:
Object
  • Object
show all
Defined in:
lib/best_buy/models/base_category.rb

Direct Known Subclasses

Category

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(init_params) ⇒ BaseCategory

Returns a new instance of BaseCategory.



7
8
9
10
# File 'lib/best_buy/models/base_category.rb', line 7

def initialize(init_params)
  @id = init_params[:id]
  @name = init_params[:name]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/best_buy/models/base_category.rb', line 5

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/best_buy/models/base_category.rb', line 5

def name
  @name
end