Sha256: e32a3865ea8432d770ac3a4c0e8e4641681b1fbabeb4b894efbe35bd7ee02809
Contents?: true
Size: 839 Bytes
Versions: 5
Compression:
Stored size: 839 Bytes
Contents
module Gateway class CreateSaleRequest attr_accessor :CreditCardTransactionCollection attr_accessor :BoletoTransactionCollection attr_accessor :Order attr_accessor :Buyer attr_accessor :ShoppingCartCollection attr_accessor :Options attr_accessor :Merchant attr_accessor :RequestData def initialize @CreditCardTransactionCollection = Array.new @BoletoTransactionCollection = Array.new @ShoppingCartCollection = Array.new @Buyer = Buyer.new @RequestData = RequestData.new @Options = SalesOption.new @Merchant = Merchant.new @Order = Order.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