Class: SayWhen::Processor::Base
- Inherits:
-
Object
- Object
- SayWhen::Processor::Base
- Defined in:
- lib/say_when/processor/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#scheduler ⇒ Object
Returns the value of attribute scheduler.
Instance Method Summary collapse
-
#initialize(scheduler) ⇒ Base
constructor
A new instance of Base.
- #process(job) ⇒ Object
Constructor Details
#initialize(scheduler) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/say_when/processor/base.rb', line 7 def initialize(scheduler) @scheduler = scheduler end |
Instance Attribute Details
#scheduler ⇒ Object
Returns the value of attribute scheduler.
5 6 7 |
# File 'lib/say_when/processor/base.rb', line 5 def scheduler @scheduler end |
Instance Method Details
#process(job) ⇒ Object
11 12 13 |
# File 'lib/say_when/processor/base.rb', line 11 def process(job) raise NotImplementedError.new('You need to implement process(job)') end |