struct Srcom::Category

Overview

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

Included Modules

Defined in:

srcr/mappings/category/category.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def full_game : Game #

Gets the full Game resource that this Category belongs to.


[View source]
def game : SimpleGame #

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

[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 miscellaneous : Bool #

[View source]
def miscellaneous=(miscellaneous : Bool) #

[View source]
def name : String #

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

[View source]
def players : Categories::Players #

[View source]
def players=(players : Categories::Players) #

[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 in this Category.


[View source]
def type : String #

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

[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]