Class: Gummy::Product
- Inherits:
-
Object
- Object
- Gummy::Product
- Defined in:
- lib/lib/gummy/product.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Product
constructor
A new instance of Product.
Constructor Details
#initialize(attributes) ⇒ Product
Returns a new instance of Product.
10 11 12 |
# File 'lib/lib/gummy/product.rb', line 10 def initialize(attributes) #@description = attributes["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/lib/gummy/product.rb', line 8 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/lib/gummy/product.rb', line 8 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/lib/gummy/product.rb', line 8 def name @name end |