Class: Skyhook::User
- Inherits:
-
Core
- Object
- Configuration
- Core
- Skyhook::User
- Defined in:
- lib/skyhook/user.rb
Constant Summary
Constants inherited from Configuration
Configuration::BASE, Configuration::FORMATS
Instance Attribute Summary collapse
-
#avatar ⇒ Object
readonly
Returns the value of attribute avatar.
-
#avatarfull ⇒ Object
readonly
Returns the value of attribute avatarfull.
-
#avatarmedium ⇒ Object
readonly
Returns the value of attribute avatarmedium.
-
#commentpermission ⇒ Object
readonly
Returns the value of attribute commentpermission.
-
#communityvisibilitystate ⇒ Object
readonly
Returns the value of attribute communityvisibilitystate.
-
#lastlogoff ⇒ Object
readonly
Returns the value of attribute lastlogoff.
-
#loccityid ⇒ Object
readonly
Returns the value of attribute loccityid.
-
#loccountrycode ⇒ Object
readonly
Returns the value of attribute loccountrycode.
-
#locstatecode ⇒ Object
readonly
Returns the value of attribute locstatecode.
-
#personaname ⇒ Object
readonly
Returns the value of attribute personaname.
-
#personastate ⇒ Object
readonly
Returns the value of attribute personastate.
-
#personastateflags ⇒ Object
readonly
Returns the value of attribute personastateflags.
-
#primaryclanid ⇒ Object
readonly
Returns the value of attribute primaryclanid.
-
#profilestate ⇒ Object
readonly
Returns the value of attribute profilestate.
-
#profileurl ⇒ Object
readonly
Returns the value of attribute profileurl.
-
#realname ⇒ Object
readonly
Returns the value of attribute realname.
-
#steamid ⇒ Object
readonly
Returns the value of attribute steamid.
-
#timecreated ⇒ Object
readonly
Returns the value of attribute timecreated.
Instance Method Summary collapse
- #friends(relationship = :all) ⇒ Object
- #game(appid) ⇒ Object
-
#initialize(steamid) ⇒ User
constructor
A new instance of User.
Methods inherited from Core
api_reference, get_method, method_missing
Methods inherited from Configuration
Constructor Details
#initialize(steamid) ⇒ User
Returns a new instance of User.
10 11 12 |
# File 'lib/skyhook/user.rb', line 10 def initialize( steamid ) set_attributes Skyhook::Core::ISteamUser.user_summaries( steamid ).first end |
Instance Attribute Details
#avatar ⇒ Object (readonly)
Returns the value of attribute avatar.
5 6 7 |
# File 'lib/skyhook/user.rb', line 5 def avatar @avatar end |
#avatarfull ⇒ Object (readonly)
Returns the value of attribute avatarfull.
5 6 7 |
# File 'lib/skyhook/user.rb', line 5 def avatarfull @avatarfull end |
#avatarmedium ⇒ Object (readonly)
Returns the value of attribute avatarmedium.
5 6 7 |
# File 'lib/skyhook/user.rb', line 5 def avatarmedium @avatarmedium end |
#commentpermission ⇒ Object (readonly)
Returns the value of attribute commentpermission.
6 7 8 |
# File 'lib/skyhook/user.rb', line 6 def @commentpermission end |
#communityvisibilitystate ⇒ Object (readonly)
Returns the value of attribute communityvisibilitystate.
6 7 8 |
# File 'lib/skyhook/user.rb', line 6 def communityvisibilitystate @communityvisibilitystate end |
#lastlogoff ⇒ Object (readonly)
Returns the value of attribute lastlogoff.
6 7 8 |
# File 'lib/skyhook/user.rb', line 6 def lastlogoff @lastlogoff end |
#loccityid ⇒ Object (readonly)
Returns the value of attribute loccityid.
8 9 10 |
# File 'lib/skyhook/user.rb', line 8 def loccityid @loccityid end |
#loccountrycode ⇒ Object (readonly)
Returns the value of attribute loccountrycode.
8 9 10 |
# File 'lib/skyhook/user.rb', line 8 def loccountrycode @loccountrycode end |
#locstatecode ⇒ Object (readonly)
Returns the value of attribute locstatecode.
8 9 10 |
# File 'lib/skyhook/user.rb', line 8 def locstatecode @locstatecode end |
#personaname ⇒ Object (readonly)
Returns the value of attribute personaname.
4 5 6 |
# File 'lib/skyhook/user.rb', line 4 def personaname @personaname end |
#personastate ⇒ Object (readonly)
Returns the value of attribute personastate.
7 8 9 |
# File 'lib/skyhook/user.rb', line 7 def personastate @personastate end |
#personastateflags ⇒ Object (readonly)
Returns the value of attribute personastateflags.
7 8 9 |
# File 'lib/skyhook/user.rb', line 7 def personastateflags @personastateflags end |
#primaryclanid ⇒ Object (readonly)
Returns the value of attribute primaryclanid.
7 8 9 |
# File 'lib/skyhook/user.rb', line 7 def primaryclanid @primaryclanid end |
#profilestate ⇒ Object (readonly)
Returns the value of attribute profilestate.
6 7 8 |
# File 'lib/skyhook/user.rb', line 6 def profilestate @profilestate end |
#profileurl ⇒ Object (readonly)
Returns the value of attribute profileurl.
4 5 6 |
# File 'lib/skyhook/user.rb', line 4 def profileurl @profileurl end |
#realname ⇒ Object (readonly)
Returns the value of attribute realname.
4 5 6 |
# File 'lib/skyhook/user.rb', line 4 def realname @realname end |
#steamid ⇒ Object (readonly)
Returns the value of attribute steamid.
4 5 6 |
# File 'lib/skyhook/user.rb', line 4 def steamid @steamid end |
#timecreated ⇒ Object (readonly)
Returns the value of attribute timecreated.
7 8 9 |
# File 'lib/skyhook/user.rb', line 7 def timecreated @timecreated end |
Instance Method Details
#friends(relationship = :all) ⇒ Object
18 19 20 |
# File 'lib/skyhook/user.rb', line 18 def friends( relationship = :all ) @friends ||= Skyhook::Core::ISteamUser.friend_list @steamid, relationship.to_s end |