Sha256: cbb8efcc288d7ddc51014b5ddd141a8dbe5971d0ea53a7dabe74d32d3ab1687b

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

class BaseRequest
  # Chave da requisição. Utilizada para identificar uma requisição específica no gateway.
  attr_accessor :RequestKey

  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

Version Path
stone_ecommerce-1.0.3 lib/gateway/BaseRequest.rb
mundipagg_sdk-1.0.3 lib/gateway/BaseRequest.rb
stone_ecommerce-1.0.2 lib/gateway/BaseRequest.rb
stone_ecommerce-1.0.0 lib/gateway/BaseRequest.rb