class ShoppingCartCollection

Attributes

DeliveryAddress[RW]
DeliveryDeadline[RW]
EstimatedDeliveryDate[RW]
FreighCostInCents[RW]
ShippingCompany[RW]
ShoppingCartItemCollection[RW]

Public Class Methods

new() click to toggle source
# File lib/mundipagg/ShoppingCart/shopping_cart.rb, line 15
def initialize
  @ShoppingCartItemCollection = Array.new
  @DeliveryAddress = DeliveryAddress.new
end

Public Instance Methods

to_json() click to toggle source
# File lib/mundipagg/ShoppingCart/shopping_cart.rb, line 20
def to_json
  hash = {}
  instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
  hash
end