Class: Services::Notifiers::LowBalance

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

Overview

Notifies owner when a station has a low balance on the prepaid SIM card.

Class Method Summary collapse

Methods inherited from StationEventNotifier

call, level, mailer_method

Class Method Details

.eventObject



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

def self.event
  "station_low_balance"
end

.message(station) ⇒ Object



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

def self.message(station)
  "#{station.name} has a low balance, only #{station.balance} kr left."
end