Method: Codebreakergem::Game#to_h

Defined in:
lib/classes/game.rb

#to_hObject



52
53
54
55
# File 'lib/classes/game.rb', line 52

def to_h
  source = difficulty_factory(difficulty.title)
  formater(source, source.attempts - difficulty.attempts, source.hints - difficulty.hints)
end