Sha256: f7caf1e414f034f91097c178166d72239e34d2c90ece6b83f82059a731012e00

Contents?: true

Size: 827 Bytes

Versions: 11

Compression:

Stored size: 827 Bytes

Contents

module Nestene
  class ExecutedMethod
    include StructureMapper::Hash

    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

    attribute name: Symbol
    attribute parameters: []
    attribute uuid: String
    attribute result: {}
    attribute error: Exception
    attribute scheduled_at: Time
    attribute started_at: Time
    attribute duration: Float
    attribute callback: Callback

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
nestene-0.2.1 lib/nestene/executed_method.rb
nestene-0.2.0 lib/nestene/executed_method.rb
nestene-0.1.8 lib/nestene/executed_method.rb
nestene-0.1.7 lib/nestene/executed_method.rb
nestene-0.1.6 lib/nestene/executed_method.rb
nestene-0.1.5 lib/nestene/executed_method.rb
nestene-0.1.4 lib/nestene/executed_method.rb
nestene-0.1.3 lib/nestene/executed_method.rb
nestene-0.1.2 lib/nestene/executed_method.rb
nestene-0.1.1 lib/nestene/executed_method.rb
nestene-0.1.0 lib/nestene/executed_method.rb