Sha256: 611063ca483afc41bd921a3b136ef0e48cbfe7192179fa5c49a4dc4e093eb851

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 2 rubygems

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