struct

Srcom::SimpleRun

Inherits JSON::Serializable / Struct / Value / Object

Has shorthand methods to getting the resources that the Links in #links point to. Also has shorthand methods to get all the full resources for things that didn't get embedded.

Constructors

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

Instance methods

category
Source
category=(category : String)
Source
comment
Source
comment=(comment : String | Nil)
Source
date
Source
date=(date : Time | Nil)
Source
examiner

Gets the full User for the person who examined this Run, if it was already examined.

Source
full_category

Gets the full Category this Run was played in.

Source
full_game

Gets the full Game this Run was played in.

Source
full_level

Gets the full Level this Run was played in.

Source
full_players

Gets all the players that played this run as either a full User or Guest object.

NOTE: Since there's a bug with Guests sometimes not having a name, those entries will be skipped.

Source
full_run

Gets the full Run resource with everything embedded.

Source
game
Source
game=(game : String)
Source
id=(id : String)
Source
level
Source
level=(level : String | Nil)
Source
platform

Gets the full Platform this run was played on, if provided.

Source
players
Source
players=(players : Array(SimplePlayer))
Source
region

Gets the full Region this run was played in, if provided.

Source
splits
Source
splits=(splits : Run::Splits | Nil)
Source
status
Source
status=(status : Run::Status)
Source
submitted
Source
submitted=(submitted : Time | Nil)
Source
system
Source
system=(system : Run::SimpleSystem)
Source
times
Source
times=(times : Run::Times)
Source
values
Source
values=(values : Hash(String, String))
Source
videos
Source
videos=(videos : Run::Videos | Nil)
Source