Class: EmailNotification

Inherits:
Notification show all
Defined in:
app/models/email_notification.rb

Instance Method Summary collapse

Methods inherited from Notification

from_api, #initial_state, #name, #notify!

Instance Method Details

#do_notify!(opts) ⇒ Object


2
3
4
5
6
# File 'app/models/email_notification.rb', line 2

def do_notify!(opts)
  Emailer.state_change(job: opts[:job],
                       state: opts[:state],
                       to: value).deliver
end