Class: Codebreaker::CreateStatService
- Inherits:
-
Object
- Object
- Codebreaker::CreateStatService
- Defined in:
- lib/codebreaker/create_stat_service.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(game) ⇒ CreateStatService
constructor
A new instance of CreateStatService.
Constructor Details
#initialize(game) ⇒ CreateStatService
Returns a new instance of CreateStatService.
3 4 5 |
# File 'lib/codebreaker/create_stat_service.rb', line 3 def initialize(game) @game = game end |
Instance Method Details
#call ⇒ Object
7 8 9 |
# File 'lib/codebreaker/create_stat_service.rb', line 7 def call StatsStorage.new.add(stat_data) end |