Class: Mundipagg::ShoppingCart
- Inherits:
-
Object
- Object
- Mundipagg::ShoppingCart
- Defined in:
- lib/mundipagg/ShoppingCart.rb
Instance Attribute Summary collapse
-
#freightCostInCents ⇒ Integer
Freight value in cents.
-
#shoppingCartItemCollection ⇒ Array
Array of ShopCartItens.
Instance Method Summary collapse
-
#initialize ⇒ ShoppingCart
constructor
A new instance of ShoppingCart.
Constructor Details
#initialize ⇒ ShoppingCart
Returns a new instance of ShoppingCart.
10 11 12 |
# File 'lib/mundipagg/ShoppingCart.rb', line 10 def initialize @shoppingCartItemCollection = Array.new end |
Instance Attribute Details
#freightCostInCents ⇒ Integer
Returns Freight value in cents.
5 6 7 |
# File 'lib/mundipagg/ShoppingCart.rb', line 5 def freightCostInCents @freightCostInCents end |
#shoppingCartItemCollection ⇒ Array
Returns Array of ShopCartItens.
8 9 10 |
# File 'lib/mundipagg/ShoppingCart.rb', line 8 def shoppingCartItemCollection @shoppingCartItemCollection end |