Class: Nestene::ExecutedMethod
- Inherits:
-
Object
- Object
- Nestene::ExecutedMethod
- Includes:
- StructureMapper::Hash
- Defined in:
- lib/nestene/executed_method.rb
Instance Method Summary collapse
-
#initialize(executing_method = nil) ⇒ ExecutedMethod
constructor
A new instance of ExecutedMethod.
Constructor Details
#initialize(executing_method = nil) ⇒ ExecutedMethod
Returns a new instance of ExecutedMethod.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/nestene/executed_method.rb', line 5 def initialize(executing_method = nil) self.parameters = [] if executing_method self.name = executing_method.name self.parameters = executing_method.parameters self.uuid = executing_method.uuid self.scheduled_at = executing_method.scheduled_at self.started_at = executing_method.started_at self.duration = Time.now - executing_method.started_at self.callback = executing_method.callback end end |