Class: Schedule::Notifier::Base
- Inherits:
-
Object
- Object
- Schedule::Notifier::Base
- Defined in:
- lib/schedule/notifier/base.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Base
constructor
A new instance of Base.
- #notify(task, message) ⇒ Object
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, ) @task = task @message = notify! end |