Module: MyNagios::ChecksHelper
- Defined in:
- app/helpers/my_nagios/checks_helper.rb
Instance Method Summary collapse
Instance Method Details
#human_time(time) ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/my_nagios/checks_helper.rb', line 4 def human_time(time) return '-' unless time distance_of_time_in_words(time, Time.now) + ' ago' end |
#status_to_label(status) ⇒ Object
10 11 12 13 14 |
# File 'app/helpers/my_nagios/checks_helper.rb', line 10 def status_to_label(status) return 'danger' if status.eql?('critical') status end |