Class: Nestene::ExecutingMethod

Inherits:
Object
  • Object
show all
Includes:
StructureMapper::Hash
Defined in:
lib/nestene/executing_method.rb

Instance Method Summary collapse

Constructor Details

#initialize(scheduled_method = nil) ⇒ ExecutingMethod

Returns a new instance of ExecutingMethod.



5
6
7
8
9
10
11
12
13
14
# File 'lib/nestene/executing_method.rb', line 5

def initialize(scheduled_method = nil)
  if scheduled_method
    self.name = scheduled_method.name
    self.parameters = scheduled_method.parameters
    self.uuid = scheduled_method.uuid
    self.scheduled_at = scheduled_method.scheduled_at
    self.started_at = Time.now
    self.callback = scheduled_method.callback
  end
end