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