struct

Srcom::User

Inherits JSON::Serializable / Struct / Value / Object

Has shorthand methods to getting the resources that the Links in #links point to.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

games(page_size : Int32 = 20) : Srcom::Api::PageIterator(Game)

Gets all the Games this User moderates.

Source
hitbox
Source
hitbox=(hitbox : Hash(String, String) | Nil)
Source
id=(id : String)
Source
location
Source
location=(location : User::Location | Nil)
Source
name

Shorthand for Name#international.

NOTE: This method is present on all things that have the international + japanese name structure.

Source
name_style
Source
name_style=(name_style : User::NameStyle)
Source
names
Source
names=(names : User::Name)
Source
pbs(top : Int32 | Nil = nil, series : String | Nil = nil, game : String | Nil = 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.

NOTE: Alias to #personal_bests.

Source
personal_bests(top : Int32 | Nil = nil, series : String | Nil = nil, game : String | Nil = 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.

Source
pronouns
Source
pronouns=(pronouns : String)
Source
role
Source
role=(role : String)
Source
runs(page_size : Int32 = 200) : Srcom::Api::PageIterator(Run)

Gets all Runs completed by this User.

NOTE: Depending on the User this request might take a long time or crash.

Source
signup
Source
signup=(signup : Time)
Source
speedrunslive
Source
speedrunslive=(speedrunslive : Hash(String, String) | Nil)
Source
twitch
Source
twitch=(twitch : Hash(String, String) | Nil)
Source
twitter
Source
twitter=(twitter : Hash(String, String) | Nil)
Source
youtube
Source
youtube=(youtube : Hash(String, String) | Nil)
Source

Nested types