lib/triviacrack/game_statistics.rb in triviacrack-0.6.0 vs lib/triviacrack/game_statistics.rb in triviacrack-0.7.0

- old
+ new

@@ -1,9 +1,10 @@ +# frozen_string_literal: true + # Public: An object representing player statistics for a Trivia Crack game. module TriviaCrack class GameStatistics - # Public: The number of questions answered correctly. attr_reader :correct_answers # Public: The number of questions answered incorrectly. attr_reader :incorrect_answers @@ -18,18 +19,17 @@ attr_reader :crowns # Public: A hash of category statistics. attr_reader :categories - def initialize(correct_answers: nil, incorrect_answers: nil, + def initialize(correct_answers: nil, incorrect_answers: nil, # rubocop:disable Metrics/ParameterLists questions_answered: nil, challenges_won: nil, crowns: nil, categories: nil) @correct_answers = correct_answers @incorrect_answers = incorrect_answers @questions_answered = questions_answered @challenges_won = challenges_won @crowns = crowns @categories = categories end - end end