Sha256: 6e3196d214da3784d2da5a25aec044ff14664916a1590765c60a533d422e8553

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

module Gateway

  class Order
    # Identificador do pedido no sistema da loja
    attr_accessor :OrderReference

    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.3.0 lib/gateway/Order/order.rb
stone_ecommerce-1.2.4 lib/gateway/Order/order.rb
mundipagg_sdk-1.2.4 lib/gateway/Order/order.rb
mundipagg_sdk-1.2.3 lib/gateway/Order/order.rb
mundipagg_sdk-1.2.3rc lib/gateway/Order/order.rb