struct Srcom::Level

Overview

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.

Included Modules

Defined in:

srcr/mappings/level/level.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def categories : Array(Category) #

[View source]
def categories=(categories : Array(Category)) #

[View source]
def game : Game #

Gets the Game that this Level belongs to.


[View source]
def id : String #

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

[View source]
def links : Array(Link) #

[View source]
def links=(links : Array(Link)) #

[View source]
def name : String #

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

[View source]
def rules : String? #

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

[View source]
def runs(page_size : Int32 = 200) : Srcom::Api::PageIterator(Run) #

Gets all Runs completed for this Level.


[View source]
def variables : Array(Variable) #

[View source]
def variables=(variables : Array(Variable)) #

[View source]
def weblink : String #

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

[View source]