Class: Mammoth::DeliveryProgressCoordinator::Entry
- Inherits:
-
Object
- Object
- Mammoth::DeliveryProgressCoordinator::Entry
- Defined in:
- lib/mammoth/delivery_progress_coordinator.rb
Overview
Mutable completion state for one registered work item.
Instance Attribute Summary collapse
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#source_position ⇒ Object
readonly
Returns the value of attribute source_position.
-
#work ⇒ Object
readonly
Returns the value of attribute work.
Instance Method Summary collapse
-
#initialize(work:, source_position:, completed:) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(work:, source_position:, completed:) ⇒ Entry
Returns a new instance of Entry.
32 33 34 35 36 |
# File 'lib/mammoth/delivery_progress_coordinator.rb', line 32 def initialize(work:, source_position:, completed:) @work = work @source_position = source_position @completed = completed end |
Instance Attribute Details
#completed ⇒ Object
Returns the value of attribute completed.
27 28 29 |
# File 'lib/mammoth/delivery_progress_coordinator.rb', line 27 def completed @completed end |
#source_position ⇒ Object (readonly)
Returns the value of attribute source_position.
26 27 28 |
# File 'lib/mammoth/delivery_progress_coordinator.rb', line 26 def source_position @source_position end |
#work ⇒ Object (readonly)
Returns the value of attribute work.
26 27 28 |
# File 'lib/mammoth/delivery_progress_coordinator.rb', line 26 def work @work end |