Exception: CanvasSync::JobUniqueness::CouldNotLockError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/canvas_sync/job_uniqueness/job_uniqueness.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lock_context, source:) ⇒ CouldNotLockError

Returns a new instance of CouldNotLockError.



27
28
29
30
31
# File 'lib/canvas_sync/job_uniqueness/job_uniqueness.rb', line 27

def initialize(lock_context, source:)
  super()
  @lock_context = lock_context
  @source = source
end

Instance Attribute Details

#lock_contextObject (readonly)

Returns the value of attribute lock_context.



25
26
27
# File 'lib/canvas_sync/job_uniqueness/job_uniqueness.rb', line 25

def lock_context
  @lock_context
end

#sourceObject (readonly)

Returns the value of attribute source.



25
26
27
# File 'lib/canvas_sync/job_uniqueness/job_uniqueness.rb', line 25

def source
  @source
end