struct

Srcom::Level

Inherits JSON::Serializable / Struct / Value / Object

Has shorthand methods to getting the resources that the Links in #links point to. Does not cover the Links to Categorys and Variables, since those are already embedded.

Constructors

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

Instance methods

categories
Source
categories=(categories : Array(Category))
Source
game

Gets the Game that this Level belongs to.

Source
id=(id : String)
Source
name
Source
name=(name : String)
Source
rules
Source
rules=(rules : String | Nil)
Source
runs(page_size : Int32 = 200) : Srcom::Api::PageIterator(Run)

Gets all Runs completed for this Level.

Source
variables
Source
variables=(variables : Array(Variable))
Source