struct Srcom::Notification

Overview

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

Included Modules

Defined in:

srcr/mappings/notification/notification.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def created : Time #

[View source]
def created=(created : Time) #

[View source]
def game : Game? #

Returns the Game this Notification links to, if it links a Game.


[View source]
def id : String #

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

[View source]
def item : Notification::Item #

[View source]
def item=(item : Notification::Item) #

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

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

[View source]
def read? #

Returns whether this Notification has already been read.


[View source]
def run : Run? #

Returns the Run this Notification links to, if it links a Run.


[View source]
def status : String #

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

[View source]
def text : String #

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

[View source]