Class: Ravelin::Item
- Inherits:
-
RavelinObject
- Object
- RavelinObject
- Ravelin::Item
- Defined in:
- lib/ravelin/item.rb
Instance Attribute Summary collapse
-
#brand ⇒ Object
Returns the value of attribute brand.
-
#category ⇒ Object
Returns the value of attribute category.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#custom ⇒ Object
Returns the value of attribute custom.
-
#name ⇒ Object
Returns the value of attribute name.
-
#price ⇒ Object
Returns the value of attribute price.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#sku ⇒ Object
Returns the value of attribute sku.
-
#upc ⇒ Object
Returns the value of attribute upc.
Method Summary
Methods inherited from RavelinObject
attr_accessor, attr_required, #initialize, required_attributes, #serializable_hash, #validate
Constructor Details
This class inherits a constructor from Ravelin::RavelinObject
Instance Attribute Details
#brand ⇒ Object
Returns the value of attribute brand.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def brand @brand end |
#category ⇒ Object
Returns the value of attribute category.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def category @category end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def currency @currency end |
#custom ⇒ Object
Returns the value of attribute custom.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def custom @custom end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def price @price end |
#quantity ⇒ Object
Returns the value of attribute quantity.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def quantity @quantity end |
#sku ⇒ Object
Returns the value of attribute sku.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def sku @sku end |
#upc ⇒ Object
Returns the value of attribute upc.
3 4 5 |
# File 'lib/ravelin/item.rb', line 3 def upc @upc end |