class HqTrivia::Model::Show
- HqTrivia::Model::Show
- Reference
- Object
Overview
The JSON response from hitting the 'https://api-quiz.hype.space/shows/now?type=hq' endpoint.
Defined in:
hqtrivia/model/show.crConstructors
- .new(active : Bool, show_id : Int32 | Nil, start_time : Time | Nil, prize : Int32, show_type : String | Nil, game_type : String | Nil = nil)
- .new(__temp_630 : JSON::PullParser)
Instance Method Summary
- #active : Bool
- #active=(_active : Bool)
- #broadcast : Union(Broadcast, Nil)
- #broadcast=(_broadcast : Union(Broadcast, Nil))
- #game_type : Union(String, Nil)
- #game_type=(_game_type : Union(String, Nil))
- #media : Union(Array(Media), Nil)
- #media=(_media : Union(Array(Media), Nil))
- #prize : Union(Int32, Nil)
- #prize=(_prize : Union(Int32, Nil))
- #show_id : Union(Int32, Nil)
- #show_id=(_show_id : Union(Int32, Nil))
- #show_type : Union(String, Nil)
- #show_type=(_show_type : Union(String, Nil))
-
#socket_url
Socket url if show is active, raises if show is not active
- #start_time : Union(Time, Nil)
- #start_time=(_start_time : Union(Time, Nil))
- #to_json(json : JSON::Builder)
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)
#