Sha256: a2f75b211ce8e931305fe69e735ed89c57e2c7d1a7ab5e9e134ea1728b72c00e
Contents?: true
Size: 806 Bytes
Versions: 2
Compression:
Stored size: 806 Bytes
Contents
# frozen_string_literal: true # Public: An object representing category statistics for a player within a # single Trivia Crack game. module TriviaCrack class CategoryStatistics # Public: The category for these statistics (:arts, :geography, etc). attr_reader :category # Public: The number of questions answered correctly for this category. attr_reader :correct # Public: The number of questions answered incorrectly for this category. attr_reader :incorrect # Public: Boolean indicating whether this is the worst category for the # player. attr_reader :worst def initialize(category: nil, correct: nil, incorrect: nil, worst: nil) @category = category @correct = correct @incorrect = incorrect @worst = worst end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
triviacrack-0.8.0 | lib/triviacrack/category_statistics.rb |
triviacrack-0.7.0 | lib/triviacrack/category_statistics.rb |