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