Class: Scheduler::Examples::ExecutableClass
- Inherits:
-
Object
- Object
- Scheduler::Examples::ExecutableClass
- Defined in:
- lib/scheduler/examples/executable_class.rb
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(job) ⇒ ExecutableClass
constructor
A new instance of ExecutableClass.
Constructor Details
#initialize(job) ⇒ ExecutableClass
Returns a new instance of ExecutableClass.
5 6 7 |
# File 'lib/scheduler/examples/executable_class.rb', line 5 def initialize(job) @job = job end |
Instance Method Details
#call(*args) ⇒ Object
9 10 11 |
# File 'lib/scheduler/examples/executable_class.rb', line 9 def call(*args) @job.log :info, 'Example of execution.' end |