struct Srcom::User
- Srcom::User
- Struct
- Value
- Object
Overview
Has shorthand methods to getting the resources that the Links 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) | Nil
- #hitbox=(hitbox : Hash(String, String) | Nil)
- #id : String
- #id=(id : String)
- #links : Array(Link)
- #links=(links : Array(Link))
- #location : User::Location | Nil
- #location=(location : User::Location | Nil)
-
#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 = nil, series : String | Nil = nil, game : String | Nil = nil) : Array(PBRun)
Gets the personal bests of this
User. -
#personal_bests(top : Int32 | Nil = nil, series : String | Nil = nil, game : String | Nil = 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) | Nil
- #speedrunslive=(speedrunslive : Hash(String, String) | Nil)
- #twitch : Hash(String, String) | Nil
- #twitch=(twitch : Hash(String, String) | Nil)
- #twitter : Hash(String, String) | Nil
- #twitter=(twitter : Hash(String, String) | Nil)
- #weblink : String
- #weblink=(weblink : String)
- #youtube : Hash(String, String) | Nil
- #youtube=(youtube : Hash(String, String) | Nil)
Constructor Detail
Instance Method Detail
Shorthand for Name#international.
NOTE This method is present on all things that have the international + japanese name structure.
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.
NOTE Alias to #personal_bests.
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.