Sha256: 57dd85062e818940528188fca38523615bea1af5037d4c0fbbac0c08aefebbb3

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 Bytes

Contents

class ShoppingCartCollection

  attr_accessor :FreighCostInCents

  attr_accessor :EstimatedDeliveryDate

  attr_accessor :DeliveryDeadline

  attr_accessor :ShippingCompany

  attr_accessor :DeliveryAddress

  attr_accessor :ShoppingCartItemCollection

  def initialize
    @ShoppingCartItemCollection = Array.new
    @DeliveryAddress = DeliveryAddress.new
  end

  def to_json
    hash = {}
    instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
    hash
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stone_ecommerce-1.0.3 lib/gateway/ShoppingCart/shopping_cart.rb
mundipagg_sdk-1.0.3 lib/gateway/ShoppingCart/shopping_cart.rb
stone_ecommerce-1.0.2 lib/gateway/ShoppingCart/shopping_cart.rb
stone_ecommerce-1.0.0 lib/gateway/ShoppingCart/shopping_cart.rb