Class: Co2Notify::Status::Normal
Instance Attribute Summary
Attributes inherited from Base
#co2, #config, #previous, #time
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Co2Notify::Status::Base
Instance Method Details
#changed?(new_status) ⇒ Boolean
79 80 81 82 83 84 |
# File 'lib/co2-notify/status.rb', line 79 def changed?(new_status) new_status.is_a?(Empty) || new_status.is_a?(High) || new_status.is_a?(VeryHigh) || (new_status.is_a?(Normal) && new_status.time >= time + ping_timeout * 60) end |
#color ⇒ Object
75 76 77 |
# File 'lib/co2-notify/status.rb', line 75 def color :green end |