Class: Nestene::ScheduledMethod

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

Instance Method Summary collapse

Constructor Details

#initialize(delayed_method = nil) ⇒ ScheduledMethod

Returns a new instance of ScheduledMethod.



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

def initialize(delayed_method = nil)
  self.parameters = []
  self.scheduled_at = Time.now
  if delayed_method
    self.uuid = delayed_method.uuid
    self.name = delayed_method.name
    self.parameters = delayed_method.parameters
  end
end