Class: Sidekiq::Portal::Job Private

Inherits:
Object
  • Object
show all
Defined in:
lib/portal/job.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Defined Under Namespace

Modules: Builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, timeline) ⇒ Job

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Job.

Parameters:

Since:

  • 0.1.0



26
27
28
29
30
# File 'lib/portal/job.rb', line 26

def initialize(klass, timeline)
  @klass = klass
  @timeline = timeline
  @lock = Sidekiq::Portal::Lock.new
end

Instance Attribute Details

#klassClass (readonly)

Returns:

  • (Class)

Since:

  • 0.1.0



12
13
14
# File 'lib/portal/job.rb', line 12

def klass
  @klass
end

#timelineSidekiq::Portal::JobManager::Timeline (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Sidekiq::Portal::JobManager::Timeline)

Since:

  • 0.1.0



18
19
20
# File 'lib/portal/job.rb', line 18

def timeline
  @timeline
end