struct Srcom::User

Overview

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

Included Modules

Defined in:

srcr/mappings/user/user.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

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

Gets all the Games this User moderates.


[View source]
def hitbox : Hash(String, String)? #

[View source]
def hitbox=(hitbox : Hash(String, String)?) #

[View source]
def id : String #

Present in certain contexts, but never relevant


[View source]
def id=(id : String) #

Present in certain contexts, but never relevant


[View source]
def links : Array(Link) #

[View source]
def links=(links : Array(Link)) #

[View source]
def location : User::Location? #

[View source]
def location=(location : User::Location?) #

[View source]
def name #

Shorthand for Name#international.

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


[View source]
def name_style : User::NameStyle #

[View source]
def name_style=(name_style : User::NameStyle) #

[View source]
def names : User::Name #

[View source]
def names=(names : User::Name) #

[View source]
def pbs(top : Int32? = nil, series : String? = nil, game : String? = nil) : Array(PBRun) #

:ditto:

NOTE Alias to #personal_bests.


[View source]
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.


[View source]
def pronouns : String? #

[View source]
def pronouns=(pronouns : String?) #

[View source]
def role : String #

[View source]
def role=(role : String) #

[View source]
def 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.


[View source]
def signup : Time #

[View source]
def signup=(signup : Time) #

[View source]
def speedrunslive : Hash(String, String)? #

[View source]
def speedrunslive=(speedrunslive : Hash(String, String)?) #

[View source]
def twitch : Hash(String, String)? #

[View source]
def twitch=(twitch : Hash(String, String)?) #

[View source]
def twitter : Hash(String, String)? #

[View source]
def twitter=(twitter : Hash(String, String)?) #

[View source]
def weblink : String #

[View source]
def weblink=(weblink : String) #

[View source]
def youtube : Hash(String, String)? #

[View source]
def youtube=(youtube : Hash(String, String)?) #

[View source]