Class: AocCli::Processors::ProgressSyncer
- Inherits:
-
Core::Processor
- Object
- Core::Processor
- AocCli::Processors::ProgressSyncer
- Defined in:
- lib/aoc_cli/processors/progress_syncer.rb
Instance Attribute Summary collapse
-
#puzzle ⇒ Object
Returns the value of attribute puzzle.
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
Methods inherited from Core::Processor
Instance Attribute Details
#puzzle ⇒ Object
Returns the value of attribute puzzle.
4 5 6 |
# File 'lib/aoc_cli/processors/progress_syncer.rb', line 4 def puzzle @puzzle end |
#stats ⇒ Object
Returns the value of attribute stats.
4 5 6 |
# File 'lib/aoc_cli/processors/progress_syncer.rb', line 4 def stats @stats end |
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/aoc_cli/processors/progress_syncer.rb', line 9 def run case current_progress when 0 then handle_not_complete! when 1 then handle_partially_complete! when 2 then handle_fully_complete! else raise end end |