Class: Mundipagg::ShoppingCartItem
- Inherits:
-
Object
- Object
- Mundipagg::ShoppingCartItem
- Defined in:
- lib/mundipagg/ShoppingCartItem.rb
Instance Attribute Summary collapse
-
#description ⇒ string
Item description.
-
#itemReference ⇒ string
Item identifier.
-
#name ⇒ string
Item name.
-
#quantity ⇒ Integer
Quantity of itens.
-
#totalCostInCents ⇒ long
Total in cents of all itens.
-
#unitCostInCents ⇒ long
Item cost in cents.
Instance Attribute Details
#description ⇒ string
Returns Item description.
8 9 10 |
# File 'lib/mundipagg/ShoppingCartItem.rb', line 8 def description @description end |
#itemReference ⇒ string
Returns Item identifier.
5 6 7 |
# File 'lib/mundipagg/ShoppingCartItem.rb', line 5 def itemReference @itemReference end |
#name ⇒ string
Returns Item name.
11 12 13 |
# File 'lib/mundipagg/ShoppingCartItem.rb', line 11 def name @name end |
#quantity ⇒ Integer
Returns Quantity of itens.
14 15 16 |
# File 'lib/mundipagg/ShoppingCartItem.rb', line 14 def quantity @quantity end |
#totalCostInCents ⇒ long
Returns Total in cents of all itens.
17 18 19 |
# File 'lib/mundipagg/ShoppingCartItem.rb', line 17 def totalCostInCents @totalCostInCents end |
#unitCostInCents ⇒ long
Returns Item cost in cents.
20 21 22 |
# File 'lib/mundipagg/ShoppingCartItem.rb', line 20 def unitCostInCents @unitCostInCents end |