class HqTrivia::Model::Question

Overview

Sent from the server when the client receives a new question.

Included Modules

Defined in:

hqtrivia/model/question.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def answers : Array(Answer) #

[View source]
def answers=(_answers : Array(Answer)) #

[View source]
def ask_time : Time #

[View source]
def ask_time=(_ask_time : Time) #

[View source]
def c : Int32 #

[View source]
def c=(_c : Int32) #

[View source]
def category : String #

[View source]
def category=(_category : String) #

[View source]
def question : String #

[View source]
def question=(_question : String) #

[View source]
def question_count : Int32 #

[View source]
def question_count=(_question_count : Int32) #

[View source]
def question_id : Int32 #

[View source]
def question_id=(_question_id : Int32) #

[View source]
def question_media : Union(QuestionMedia, Nil) #

[View source]
def question_media=(_question_media : Union(QuestionMedia, Nil)) #

[View source]
def question_number : Int32 #

[View source]
def question_number=(_question_number : Int32) #

[View source]
def sent : Time #

[View source]
def sent=(_sent : Time) #

[View source]
def time_left_ms : Int32 #

[View source]
def time_left_ms=(_time_left_ms : Int32) #

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

[View source]
def total_time_ms : Int32 #

[View source]
def total_time_ms=(_total_time_ms : Int32) #

[View source]
def ts : Time #

[View source]
def ts=(_ts : Time) #

[View source]
def type : String #

[View source]
def type=(_type : String) #

[View source]