Sha256: 1ff3ac58e35d1b2601f87ea5b0f2385cd22ae2d6fa4d31c5873642495ac2d268

Contents?: true

Size: 443 Bytes

Versions: 5

Compression:

Stored size: 443 Bytes

Contents

module Gateway

  class ShoppingCartItemCollection

    attr_accessor :ItemReference

    attr_accessor :Quantity

    attr_accessor :UnitCostInCents

    attr_accessor :TotalCostInCents

    attr_accessor :Name

    attr_accessor :Description

    attr_accessor :DiscountAmountInCents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.4.1 lib/gateway/ShoppingCart/shopping_cart_item.rb
stone_ecommerce-1.4.0 lib/gateway/ShoppingCart/shopping_cart_item.rb
mundipagg_sdk-1.4.0 lib/gateway/ShoppingCart/shopping_cart_item.rb
stone_ecommerce-1.3.0 lib/gateway/ShoppingCart/shopping_cart_item.rb
stone_ecommerce-1.2.3 lib/gateway/ShoppingCart/shopping_cart_item.rb