lib/gateway/Address/delivery_address.rb in stone_ecommerce-1.2.4 vs lib/gateway/Address/delivery_address.rb in stone_ecommerce-1.3.0

- old
+ new

@@ -1,34 +1,34 @@ -module Gateway - - class DeliveryAddress - # País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay - attr_accessor :Country - - # Estado - attr_accessor :State - - # Cidade - attr_accessor :City - - # Distrito - attr_accessor :District - - # Logradouro - attr_accessor :Street - - # Número - attr_accessor :Number - - # Complemento - attr_accessor :Complement - - # zip code - attr_accessor :ZipCode - - def to_json - hash = {} - instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) } - hash - end - end -end +module Gateway + + class DeliveryAddress + # País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay + attr_accessor :Country + + # Estado + attr_accessor :State + + # Cidade + attr_accessor :City + + # Distrito + attr_accessor :District + + # Logradouro + attr_accessor :Street + + # Número + attr_accessor :Number + + # Complemento + attr_accessor :Complement + + # zip code + attr_accessor :ZipCode + + def to_json + hash = {} + instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) } + hash + end + end +end