lib/gateway/Merchant/merchant.rb in stone_ecommerce-1.0.3 vs lib/gateway/Merchant/merchant.rb in stone_ecommerce-1.2.3
- old
+ new
@@ -1,11 +1,13 @@
-class Merchant
- # Identificador da loja na plataforma
- attr_accessor :MerchantReference
+module Gateway
- def to_json
- hash = {}
- instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
- hash
- end
+ class Merchant
+ # Identificador da loja na plataforma
+ attr_accessor :MerchantReference
+ def to_json
+ hash = {}
+ instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
+ hash
+ end
+ end
end
\ No newline at end of file