Class: Schedule::Notifier::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/schedule/notifier/base.rb

Direct Known Subclasses

Console, Email

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Base

Returns a new instance of Base.



4
5
6
# File 'lib/schedule/notifier/base.rb', line 4

def initialize(opts = {})
  @options = opts
end

Instance Method Details

#notify(task, message) ⇒ Object



8
9
10
11
12
# File 'lib/schedule/notifier/base.rb', line 8

def notify(task, message)
  @task = task
  @message = message
  notify!
end