class TriviaCrack::CategoryStatistics
Attributes
category[R]
Public: The category for these statistics (:arts, :geography, etc).
correct[R]
Public: The number of questions answered correctly for this category.
incorrect[R]
Public: The number of questions answered incorrectly for this category.
worst[R]
Public: Boolean indicating whether this is the worst category for the player.
Public Class Methods
new(category: nil, correct: nil, incorrect: nil, worst: nil)
click to toggle source
# File lib/triviacrack/category_statistics.rb, line 19 def initialize(category: nil, correct: nil, incorrect: nil, worst: nil) @category = category @correct = correct @incorrect = incorrect @worst = worst end