class TriviaCrack::Profile

Attributes

categories[R]

Public: A hash of TriviaCrack::CategoryStatistics, containing the user's statistics for individual categories.

challenges_lost[R]

Public: Number of challenges lost by the user.

challenges_won[R]

Public: Number of challenges won by the user.

consecutive_answers_correct[R]

Public: Number of consecutive correctly answered questions by the user.

consecutive_games_won[R]

Public: Number of consecutive games won by the user.

country[R]

Public: The user's country (e.g. :ca, :us).

email[R]

Public: The user's email address.

facebook_name[R]

Public: The user's Facebook name.

games_lost[R]

Public: Number of games lost by the user.

games_resigned[R]

Public: Number of games resigned by the user.

games_won[R]

Public: Number of games won by the user.

id[R]

Public: The unique identifier of the user.

is_blocked[R]

Public: Boolean indicating whether you have blocked the user.

is_friend[R]

Public: Boolean indicating whether the user is your friend.

last_login[R]

Public: The datetime of the user's last login.

last_play[R]

Public: The datetime of the user's last play.

level[R]

Public: The user's level.

my_losses_vs_user[R]

Public: Number of games lost against the requesting user.

my_wins_vs_user[R]

Public: Number of games won against the requesting user.

username[R]

Public: The user's username.

Public Class Methods

new(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) click to toggle source
# 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