class TriviaCrack::Profile
Attributes
Public: A hash of TriviaCrack::CategoryStatistics
, containing the user's statistics for individual categories.
Public: Number of challenges lost by the user.
Public: Number of challenges won by the user.
Public: Number of consecutive correctly answered questions by the user.
Public: Number of consecutive games won by the user.
Public: The user's country (e.g. :ca, :us).
Public: The user's email address.
Public: The user's Facebook name.
Public: Number of games lost by the user.
Public: Number of games resigned by the user.
Public: Number of games won by the user.
Public: The unique identifier of the user.
Public: Boolean indicating whether you have blocked the user.
Public: Boolean indicating whether the user is your friend.
Public: The datetime of the user's last login.
Public: The datetime of the user's last play.
Public: The user's level.
Public: Number of games lost against the requesting user.
Public: Number of games won against the requesting user.
Public: The user's username.
Public Class Methods
# File lib/triviacrack/profile.rb, line 66 def initialize(id: nil, facebook_name: nil, is_friend: nil, is_blocked: nil, username: nil, country: nil, email: nil, last_play: nil, last_login: nil, games_won: nil, games_lost: nil, games_resigned: nil, consecutive_games_won: nil, consecutive_answers_correct: nil, level: nil, challenges_won: nil, challenges_lost: nil, categories: nil, my_wins_vs_user: nil, my_losses_vs_user: nil) @id = id @facebook_name = facebook_name @is_friend = is_friend @is_blocked = is_blocked @username = username @country = country @email = email @last_play = last_play @last_login = last_login @games_won = games_won @games_lost = games_lost @games_resigned = games_resigned @consecutive_games_won = consecutive_games_won @consecutive_answers_correct = consecutive_answers_correct @level = level @challenges_won = challenges_won @challenges_lost = challenges_lost @categories = categories @my_wins_vs_user = my_wins_vs_user @my_losses_vs_user = my_losses_vs_user end