Sha256: 003b83891123ddc13e4d11388508f3c4e844283b9382cc6febfcf54840e0cfb0

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 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

9 entries across 9 versions & 2 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/ShoppingCart/shopping_cart.rb
mundipagg_sdk-1.0.1 lib/gateway/ShoppingCart/shopping_cart.rb
mundipagg_sdk-1.0.0 lib/gateway/ShoppingCart/shopping_cart.rb
mundipagg_api-1.3.1 lib/mundipagg/ShoppingCart/shopping_cart.rb
mundipagg_api-1.3.0 lib/mundipagg/ShoppingCart/shopping_cart.rb
mundipagg_api-1.1.1 lib/mundipagg/ShoppingCart/shopping_cart.rb
mundipagg_api-1.1.0 lib/mundipagg/ShoppingCart/shopping_cart.rb
mundipagg_api-1.0.1 lib/mundipagg/ShoppingCart/shopping_cart.rb
mundipagg_api-1.0.0 lib/mundipagg/ShoppingCart/shopping_cart.rb