Class: BestBuy::BaseCategory
- Inherits:
-
Object
- Object
- BestBuy::BaseCategory
- Defined in:
- lib/best_buy/models/base_category.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(init_params) ⇒ BaseCategory
constructor
A new instance of BaseCategory.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/best_buy/models/base_category.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/best_buy/models/base_category.rb', line 5 def name @name end |