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 | Nil #

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

[View source]
def date : Time | Nil #

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

[View source]
def examiner : User | Nil #

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 | Nil #

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 | Nil #

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

[View source]
def platform : Platform | Nil #

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 | Nil #

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


[View source]
def splits : Run::Splits | Nil #

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

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

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

[View source]
def submitted : Time | Nil #

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

[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 | Nil #

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

[View source]
def weblink : String #

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

[View source]