lib/gateway/Order/order.rb in stone_ecommerce-1.2.4 vs lib/gateway/Order/order.rb in stone_ecommerce-1.3.0

- old
+ new

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