Sha256: a90cadc0113f00e3e9c6795857e72261aab40c115e24d976270b13b33b966404

Contents?: true

Size: 632 Bytes

Versions: 11

Compression:

Stored size: 632 Bytes

Contents

module Nestene
  class ExecutingMethod
    include StructureMapper::Hash

    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

    attribute name: Symbol
    attribute parameters: []
    attribute uuid: String
    attribute scheduled_at: Time
    attribute started_at: Time
    attribute callback: Callback
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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