struct Srcom::Game::Gametype

Overview

Has shorthand methods to getting the resources that the Links in #links point to.

Included Modules

Defined in:

srcr/mappings/game/gametype.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def allows_base_game : Bool #

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

[View source]
def games(page_size : Int32 = 20) : Srcom::Api::PageIterator(Game) #

Gets all Games that fall under this Gametype.

NOTE Depending on the gametype this request might take quite a while. It also defaults to only 20 results per page as otherwise it might very well 503.


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