Class: AocCli::Processors::StatsRefresher

Inherits:
Core::Processor show all
Extended by:
Forwardable
Defined in:
lib/aoc_cli/processors/stats_refresher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Core::Processor

#run!, run!

Instance Attribute Details

#statsObject

Returns the value of attribute stats.



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

def stats
  @stats
end

Instance Method Details

#runObject



8
9
10
# File 'lib/aoc_cli/processors/stats_refresher.rb', line 8

def run
  stats.update(**updated_stats) || stats
end