class

HqTrivia::Model::Show

Inherits Reference < Object

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

Constructors

new(active : Bool, show_id : Int32 | Nil, start_time : Time | Nil, prize : Int32, show_type : String | Nil, game_type : String | Nil = nil)
Source
new(__temp_658 : JSON::PullParser)
Source

Instance methods

active
Source
active=(_active : Bool)
Source
broadcast
Source
broadcast=(_broadcast : Union(Broadcast, Nil))
Source
game_type
Source
game_type=(_game_type : Union(String, Nil))
Source
media
Source
media=(_media : Union(Array(Media), Nil))
Source
prize
Source
prize=(_prize : Union(Int32, Nil))
Source
show_id
Source
show_id=(_show_id : Union(Int32, Nil))
Source
show_type
Source
show_type=(_show_type : Union(String, Nil))
Source
socket_url

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

Source
start_time
Source
start_time=(_start_time : Union(Time, Nil))
Source
to_json(json : JSON::Builder)
Source

Nested types