Class: Codebreaker::CreateStatService

Inherits:
Object
  • Object
show all
Defined in:
lib/codebreaker/create_stat_service.rb

Instance Method Summary collapse

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

#callObject



7
8
9
# File 'lib/codebreaker/create_stat_service.rb', line 7

def call
  StatsStorage.new.add(stat_data)
end