class HqTrivia::Model::Show

Overview

The JSON response from hitting the 'https://api-quiz.hype.space/shows/now?type=hq' endpoint.

Defined in:

hqtrivia/model/show.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(active : Bool, show_id : Int32 | Nil, start_time : Time | Nil, prize : Int32, show_type : String | Nil, game_type : String | Nil = nil) #

[View source]
def self.new(__temp_630 : JSON::PullParser) #

[View source]

Instance Method Detail

def active : Bool #

[View source]
def active=(_active : Bool) #

[View source]
def broadcast : Union(Broadcast, Nil) #

[View source]
def broadcast=(_broadcast : Union(Broadcast, Nil)) #

[View source]
def game_type : Union(String, Nil) #

[View source]
def game_type=(_game_type : Union(String, Nil)) #

[View source]
def media : Union(Array(Media), Nil) #

[View source]
def media=(_media : Union(Array(Media), Nil)) #

[View source]
def prize : Union(Int32, Nil) #

[View source]
def prize=(_prize : Union(Int32, Nil)) #

[View source]
def show_id : Union(Int32, Nil) #

[View source]
def show_id=(_show_id : Union(Int32, Nil)) #

[View source]
def show_type : Union(String, Nil) #

[View source]
def show_type=(_show_type : Union(String, Nil)) #

[View source]
def socket_url #

Socket url if show is active, raises if show is not active


[View source]
def start_time : Union(Time, Nil) #

[View source]
def start_time=(_start_time : Union(Time, Nil)) #

[View source]
def to_json(json : JSON::Builder) #

[View source]