class XboxLiveApi::Profile
Attributes
account_tier[R]
@return [String] “Silver” or “Gold”
gamer_picture[R]
@return [String] a url to the user's gamer picture on xbox.com
gamerscore[R]
@return [Fixnum] the user's total gamerscore earned
gamertag[R]
@return [String] the user's Xbox Live gamertag
id[R]
@return [String] the user's Xbox Live id
preferred_color_url[R]
@return [String] a url to retrieve the user's preferred colors
tenure_level[R]
@return [Fixnum] the number of years the user has been on Xbox Live
xbox_one_rep[R]
@return [String] “Good Player”, etc.
Public Class Methods
new(id: nil, gamertag: nil, gamerscore: nil, gamer_picture: nil, account_tier: nil, xbox_one_rep: nil, preferred_color_url: nil, tenure_level: nil)
click to toggle source
# File lib/xbox_live_api/profile.rb, line 21 def initialize(id: nil, gamertag: nil, gamerscore: nil, gamer_picture: nil, account_tier: nil, xbox_one_rep: nil, preferred_color_url: nil, tenure_level: nil) @id = id @gamertag = gamertag @gamerscore = gamerscore @gamer_picture = gamer_picture @account_tier = account_tier @xbox_one_rep = xbox_one_rep @preferred_color_url = preferred_color_url @tenure_level = tenure_level end
Public Instance Methods
==(o)
click to toggle source
# File lib/xbox_live_api/profile.rb, line 33 def ==(o) o.instance_of?(self.class) && o.state == state end
hash()
click to toggle source
# File lib/xbox_live_api/profile.rb, line 37 def hash state.hash end
Protected Instance Methods
state()
click to toggle source
# File lib/xbox_live_api/profile.rb, line 43 def state [@id, @gamertag, @gamerscore, @gamer_picture, @account_tier, @xbox_one_rep, @preferred_color_url, @tenure_level] end