class XboxLiveApi::SessionInfo
Attributes
gamertag[R]
@return [String] the xbox live gamertag for the logged in user
token[R]
@return [String] the xbox live token used to make requests for the logged in user
user_id[R]
@return [Fixnum] the xbox live id for the logged in user
Public Class Methods
new(user_id: nil, gamertag: nil, token: nil)
click to toggle source
# File lib/xbox_live_api/session_info.rb, line 11 def initialize(user_id: nil, gamertag: nil, token: nil) @user_id = user_id @gamertag = gamertag @token = token end
Public Instance Methods
==(o)
click to toggle source
# File lib/xbox_live_api/session_info.rb, line 17 def ==(o) o.instance_of?(self.class) && o.state == state end
hash()
click to toggle source
# File lib/xbox_live_api/session_info.rb, line 21 def hash state.hash end
Protected Instance Methods
state()
click to toggle source
# File lib/xbox_live_api/session_info.rb, line 27 def state [@user_id, @gamertag, @token] end