Sha256: 5c9f95bc8f3fa0598d545f8592f2c894513078328ce3169362ac59811adcf22d

Contents?: true

Size: 298 Bytes

Versions: 9

Compression:

Stored size: 298 Bytes

Contents

class BaseResponse

  attr_accessor :RequestKey

  attr_accessor :MerchantKey

  attr_accessor :ErrorReport

  attr_accessor :InternalTime

  def to_json
    hash = {}
    instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
    hash
  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/BaseResponse.rb
mundipagg_sdk-1.0.1 lib/gateway/BaseResponse.rb
mundipagg_sdk-1.0.0 lib/gateway/BaseResponse.rb
mundipagg_api-1.3.1 lib/mundipagg/BaseResponse.rb
mundipagg_api-1.3.0 lib/mundipagg/BaseResponse.rb
mundipagg_api-1.1.1 lib/mundipagg/BaseResponse.rb
mundipagg_api-1.1.0 lib/mundipagg/BaseResponse.rb
mundipagg_api-1.0.1 lib/mundipagg/BaseResponse.rb
mundipagg_api-1.0.0 lib/mundipagg/BaseResponse.rb