lib/gateway/Order/order.rb in mundipagg_sdk-1.0.2 vs lib/gateway/Order/order.rb in mundipagg_sdk-1.0.3

- old
+ new

@@ -1,11 +1,11 @@ -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 - +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 \ No newline at end of file