Class: PostmonRuby::Address
- Inherits:
-
Object
- Object
- PostmonRuby::Address
- Defined in:
- lib/postmon_ruby/address.rb
Constant Summary collapse
- @@address_attributes =
[ :complemento, :bairro, :cidade, :logradouro, :estado, :cep ]
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(options = {}) ⇒ Address
Returns a new instance of Address.
8 9 10 11 12 13 |
# File 'lib/postmon_ruby/address.rb', line 8 def initialize(={}) @not_found = true if .not_found? @@address_attributes.each do |attribute| send(:"#{attribute}=", [attribute.to_s] || "") end end |