class Gateway::ShoppingCartCollection
Attributes
DeliveryAddress[RW]
DeliveryDeadline[RW]
EstimatedDeliveryDate[RW]
FreighCostInCents[RW]
ShippingCompany[RW]
ShoppingCartItemCollection[RW]
Public Class Methods
new()
click to toggle source
# File lib/gateway/ShoppingCart/shopping_cart.rb, line 17 def initialize @ShoppingCartItemCollection = Array.new @DeliveryAddress = DeliveryAddress.new end
Public Instance Methods
to_json()
click to toggle source
# File lib/gateway/ShoppingCart/shopping_cart.rb, line 22 def to_json hash = {} instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash end