Class: Gateway::Merchant

Inherits:
Object
  • Object
show all
Defined in:
lib/gateway/Merchant/merchant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#MerchantReferenceObject

Identificador da loja na plataforma



5
6
7
# File 'lib/gateway/Merchant/merchant.rb', line 5

def MerchantReference
  @MerchantReference
end

Instance Method Details

#to_jsonObject



7
8
9
10
11
# File 'lib/gateway/Merchant/merchant.rb', line 7

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