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