lib/classes/statistic.rb in codebreakergem-0.1.9 vs lib/classes/statistic.rb in codebreakergem-0.1.10
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
module Codebreakergem
class Statistic
- attr_reader :name, :difficulty, :attempts_total,
+ attr_accessor :name, :difficulty, :attempts_total,
:attempts_used, :hints_total, :hints_used
def initialize(name:, difficulty:, attempts_total:, hints_total:)
@name = name
@difficulty = difficulty