Class: Services::Notifiers::StationOnline

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

Overview

Notifies owner when a station is back online.

Class Method Summary collapse

Methods inherited from StationEventNotifier

call, level, mailer_method

Class Method Details

.eventObject



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

def self.event
  "station_online"
end

.message(station) ⇒ Object



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

def self.message(station)
  "Your station #{station.name} has started to respond and we are now receiving data from it."
end