Sha256: 78095d3d35c3e827594e7b52b4a0042c7a444c792b47be77244fcc26b92037bf

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 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.4.1 lib/gateway/Order/order.rb
stone_ecommerce-1.4.0 lib/gateway/Order/order.rb
mundipagg_sdk-1.4.0 lib/gateway/Order/order.rb
stone_ecommerce-1.3.0 lib/gateway/Order/order.rb
stone_ecommerce-1.2.3 lib/gateway/Order/order.rb