Class: Mundipagg::ShoppingCart

Inherits:
Object
  • Object
show all
Defined in:
lib/mundipagg/ShoppingCart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeShoppingCart

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

#freightCostInCentsInteger

Returns Freight value in cents.

Returns:

  • (Integer)

    Freight value in cents



5
6
7
# File 'lib/mundipagg/ShoppingCart.rb', line 5

def freightCostInCents
  @freightCostInCents
end

#shoppingCartItemCollectionArray

Returns Array of ShopCartItens.

Returns:

  • (Array)

    Array of ShopCartItens



8
9
10
# File 'lib/mundipagg/ShoppingCart.rb', line 8

def shoppingCartItemCollection
  @shoppingCartItemCollection
end