Class: Services::Notifiers::StationOffline

Inherits:
StationEventNotifier show all
Defined in:
app/services/notifiers/station_offline.rb

Overview

Notifies owner when a station has gone offline

Class Method Summary collapse

Methods inherited from StationEventNotifier

call, mailer_method

Class Method Details

.eventObject


8
9
10
# File 'app/services/notifiers/station_offline.rb', line 8

def self.event
  "station_offline"
end

.levelObject


11
12
13
# File 'app/services/notifiers/station_offline.rb', line 11

def self.level
  :warning
end

.message(station) ⇒ Object


5
6
7
# File 'app/services/notifiers/station_offline.rb', line 5

def self.message(station)
  "Your station #{station.name} has not responded for 15 minutes."
end