Class: AocCli::Processors::ProgressSyncer

Inherits:
Core::Processor show all
Defined in:
lib/aoc_cli/processors/progress_syncer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Core::Processor

#run!, run!

Instance Attribute Details

#puzzleObject

Returns the value of attribute puzzle.



4
5
6
# File 'lib/aoc_cli/processors/progress_syncer.rb', line 4

def puzzle
  @puzzle
end

#statsObject

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

#runObject



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