struct Srcom::Guest

Overview

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

BUG For some reason, in some contexts a Guest can have a nil name. This is a problem of the API.

Included Modules

Defined in:

srcr/mappings/user/guest.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def links : Array(Link) #

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

[View source]
def name : String | Nil #

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

[View source]
def rel : String | Nil #

[View source]
def rel=(rel : String | Nil) #

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

Gets all Runs completed by this Guest.

NOTE As Guests likely don't play too many runs before signing up, this request shouldn't crash.


[View source]