struct Srcom::User
- Srcom::User
- Struct
- Value
- Object
Overview
Has shorthand methods to getting the resources that the Link
s in #links
point to.
Included Modules
- JSON::Serializable
Defined in:
srcr/mappings/user/user.crConstructors
Instance Method Summary
- #games(page_size : Int32 = 20) : Srcom::Api::PageIterator(Game)
- #hitbox : Hash(String, String)?
- #hitbox=(hitbox : Hash(String, String)?)
-
#id : String
Present in certain contexts, but never relevant
-
#id=(id : String)
Present in certain contexts, but never relevant
- #links : Array(Link)
- #links=(links : Array(Link))
- #location : User::Location?
- #location=(location : User::Location?)
-
#name
Shorthand for
Name#international
. - #name_style : User::NameStyle
- #name_style=(name_style : User::NameStyle)
- #names : User::Name
- #names=(names : User::Name)
-
#pbs(top : Int32? = nil, series : String? = nil, game : String? = nil) : Array(PBRun)
:ditto:
-
#personal_bests(top : Int32? = nil, series : String? = nil, game : String? = nil) : Array(PBRun)
Gets the personal bests of this
User
. - #pronouns : String?
- #pronouns=(pronouns : String?)
- #role : String
- #role=(role : String)
- #runs(page_size : Int32 = 200) : Srcom::Api::PageIterator(Run)
- #signup : Time
- #signup=(signup : Time)
- #speedrunslive : Hash(String, String)?
- #speedrunslive=(speedrunslive : Hash(String, String)?)
- #twitch : Hash(String, String)?
- #twitch=(twitch : Hash(String, String)?)
- #twitter : Hash(String, String)?
- #twitter=(twitter : Hash(String, String)?)
- #weblink : String
- #weblink=(weblink : String)
- #youtube : Hash(String, String)?
- #youtube=(youtube : Hash(String, String)?)
Constructor Detail
Instance Method Detail
def name
#
Shorthand for Name#international
.
NOTE This method is present on all things that have the international
+ japanese
name structure.
:ditto:
NOTE Alias to #personal_bests
.
def personal_bests(top : Int32? = nil, series : String? = nil, game : String? = nil) : Array(PBRun)
#
Gets the personal bests of this User
.
Providing top will only return runs of rank top or better.
If series or game are given, only runs done in that Series
/ Game
are returned. Both
of these can be provided as a real ID or their respective abbreviation.