Class: CustomGateway::Category
- Inherits:
-
Object
- Object
- CustomGateway::Category
- Defined in:
- lib/custom_gateway/models/category.rb
Instance Attribute Summary collapse
-
#full_path ⇒ Object
Returns the value of attribute full_path.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(params) ⇒ Category
Returns a new instance of Category.
5 6 7 8 9 |
# File 'lib/custom_gateway/models/category.rb', line 5 def initialize(params) self.id = params['id'] || '' self.name = params['name'] || '' self.full_path = params['full_path'] || '' end |
Instance Attribute Details
#full_path ⇒ Object
Returns the value of attribute full_path.
3 4 5 |
# File 'lib/custom_gateway/models/category.rb', line 3 def full_path @full_path end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/custom_gateway/models/category.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/custom_gateway/models/category.rb', line 3 def name @name end |