lib/postmon_ruby/state.rb in postmon_ruby-2.1.3 vs lib/postmon_ruby/state.rb in postmon_ruby-3.0.0
- old
+ new
@@ -3,10 +3,10 @@
@@state_attributes = [ :area_km2, :codigo_ibge, :nome ]
attr_reader :not_found, *@@state_attributes
def initialize(options={})
- @not_found = true if options.nil?
+ @not_found = true if options.not_found?
@@state_attributes.each do |attribute|
send(:"#{attribute}=", options[attribute.to_s] || "")
end
end
\ No newline at end of file