class Nestene::ExecutedMethod

Public Class Methods

new(executing_method = nil) click to toggle source
# 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