struct Srcom::SimpleRun

Overview

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.

Included Modules

Defined in:

srcr/mappings/run/simple_run.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def category : String #

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

[View source]
def comment : String? #

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

[View source]
def date : Time? #

[View source]
def date=(date : Time?) #

[View source]
def examiner : User? #

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


[View source]
def full_category : Category #

Gets the full Category this Run was played in.


[View source]
def full_game : Game #

Gets the full Game this Run was played in.


[View source]
def full_level : Level? #

Gets the full Level this Run was played in.


[View source]
def full_players : Array(User | Guest) #

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.


[View source]
def full_run : Run #

Gets the full Run resource with everything embedded.


[View source]
def game : String #

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

[View source]
def id : String #

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

[View source]
def level : String? #

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

[View source]
def platform : Platform? #

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


[View source]
def players : Array(SimplePlayer) #

[View source]
def players=(players : Array(SimplePlayer)) #

[View source]
def region : Region? #

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


[View source]
def splits : Run::Splits? #

[View source]
def splits=(splits : Run::Splits?) #

[View source]
def status : Run::Status #

[View source]
def status=(status : Run::Status) #

[View source]
def submitted : Time? #

[View source]
def submitted=(submitted : Time?) #

[View source]
def system : Run::SimpleSystem #

[View source]
def system=(system : Run::SimpleSystem) #

[View source]
def times : Run::Times #

[View source]
def times=(times : Run::Times) #

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

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

[View source]
def videos : Run::Videos? #

[View source]
def videos=(videos : Run::Videos?) #

[View source]
def weblink : String #

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

[View source]