struct Srcom::SimpleRun
- Srcom::SimpleRun
- Struct
- Value
- Object
Overview
Has shorthand methods to getting the resources that the Link
s in #links
point to.
Also has shorthand methods to get all the full resources for things that didn't get embedded.
Included Modules
- JSON::Serializable
Defined in:
srcr/mappings/run/simple_run.crConstructors
Instance Method Summary
- #category : String
- #category=(category : String)
- #comment : String?
- #comment=(comment : String?)
- #date : Time?
- #date=(date : Time?)
- #examiner : User?
- #full_category : Category
- #full_game : Game
- #full_level : Level?
- #full_players : Array(User | Guest)
-
#full_run : Run
Gets the full
Run
resource with everything embedded. - #game : String
- #game=(game : String)
- #id : String
- #id=(id : String)
- #level : String?
- #level=(level : String?)
-
#platform : Platform?
Gets the full
Platform
this run was played on, if provided. - #players : Array(SimplePlayer)
- #players=(players : Array(SimplePlayer))
-
#region : Region?
Gets the full
Region
this run was played in, if provided. - #splits : Run::Splits?
- #splits=(splits : Run::Splits?)
- #status : Run::Status
- #status=(status : Run::Status)
- #submitted : Time?
- #submitted=(submitted : Time?)
- #system : Run::SimpleSystem
- #system=(system : Run::SimpleSystem)
- #times : Run::Times
- #times=(times : Run::Times)
- #values : Hash(String, String)
- #values=(values : Hash(String, String))
- #videos : Run::Videos?
- #videos=(videos : Run::Videos?)
- #weblink : String
- #weblink=(weblink : String)
Constructor Detail
Instance Method Detail
Gets all the players that played this run as either a full User
or Guest
object.
NOTE Since there's a bug with Guest
s sometimes not having a name, those entries will be
skipped.
Gets the full Platform
this run was played on, if provided.