lib/gateway/Address/buyer_address.rb in stone_ecommerce-1.0.3 vs lib/gateway/Address/buyer_address.rb in stone_ecommerce-1.2.3
- old
+ new
@@ -1,36 +1,39 @@
-class BuyerAddress
- # País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
- attr_accessor :Country
+module Gateway
- # Estado
- attr_accessor :State
+ class BuyerAddress
+ # País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
+ attr_accessor :Country
- # Cidade
- attr_accessor :City
+ # Estado
+ attr_accessor :State
- # Distrito
- attr_accessor :District
+ # Cidade
+ attr_accessor :City
- # Logradouro
- attr_accessor :Street
+ # Distrito
+ attr_accessor :District
- # Número
- attr_accessor :Number
+ # Logradouro
+ attr_accessor :Street
- # Complemento
- attr_accessor :Complement
+ # Número
+ attr_accessor :Number
- # CEP
- attr_accessor :ZipCode
+ # Complemento
+ attr_accessor :Complement
- # Tipo de endereço
- attr_accessor :AddressType
+ # CEP
+ attr_accessor :ZipCode
+ # Tipo de endereço
+ attr_accessor :AddressType
- def to_json
- hash = {}
- instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
- hash
- end
-end
+ 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