class TriviaCrack::GameStatistics
Attributes
categories[R]
Public: A hash of category statistics.
challenges_won[R]
Public: The total number of challenges won.
correct_answers[R]
Public: The number of questions answered correctly.
crowns[R]
Public: The list of categories for which crowns have been won.
incorrect_answers[R]
Public: The number of questions answered incorrectly.
questions_answered[R]
Public: The total number of questions answered.
Public Class Methods
new(correct_answers: nil, incorrect_answers: nil, questions_answered: nil, challenges_won: nil, crowns: nil, categories: nil)
click to toggle source
# File lib/triviacrack/game_statistics.rb, line 23 def initialize(correct_answers: nil, incorrect_answers: nil, 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