struct Srcom::Platform

Overview

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

Included Modules

Defined in:

srcr/mappings/platform/platform.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def games(page_size : Int32 = 20) : Srcom::Api::PageIterator(Game) #

Gets all the Games playable on this Platform.

NOTE Defaults to 20 results per page as otherwise the request 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]
def released : Int32 #

[View source]
def released=(released : Int32) #

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

Gets all Runs completed while playing on this Platform.

NOTE Depending on the Platform trying to get all Runs almost definitely crashes at some point.


[View source]