Class: AocCli::Processors::StatsRefresher
- Inherits:
-
Core::Processor
- Object
- Core::Processor
- AocCli::Processors::StatsRefresher
- Extended by:
- Forwardable
- Defined in:
- lib/aoc_cli/processors/stats_refresher.rb
Instance Attribute Summary collapse
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
Methods inherited from Core::Processor
Instance Attribute Details
#stats ⇒ Object
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
#run ⇒ Object
8 9 10 |
# File 'lib/aoc_cli/processors/stats_refresher.rb', line 8 def run stats.update(**updated_stats) || stats end |