Sha256: 4bb2365ea3196b3002712ceb0732c575e5acf567bdb74de8a5d737b8e3836343
Contents?: true
Size: 586 Bytes
Versions: 5
Compression:
Stored size: 586 Bytes
Contents
module Gateway 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 end
Version data entries
5 entries across 5 versions & 2 rubygems