Class: Scheduler::Examples::ExecutableClass

Inherits:
Object
  • Object
show all
Defined in:
lib/scheduler/examples/executable_class.rb

Instance Method Summary collapse

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