class Telecr::Types::Poll

Defined in:

api/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telecr::Types::BaseType

inspect(io : IO) : Nil inspect, to_h : Hash(String, JSON::Any) to_h

Constructor methods inherited from class Telecr::Types::BaseType

new(pull : JSON::PullParser) new

Constructor Detail

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

[View source]

Instance Method Detail

def allows_multiple_answers : Bool #

[View source]
def allows_multiple_answers=(allows_multiple_answers : Bool) #

[View source]
def allows_revoting : Bool | Nil #

[View source]
def allows_revoting=(allows_revoting : Bool | Nil) #

[View source]
def correct_option_id : Int32 | Nil #

[View source]
def correct_option_id=(correct_option_id : Int32 | Nil) #

[View source]
def description : String | Nil #

[View source]
def description=(description : String | Nil) #

[View source]
def explanation : String | Nil #

[View source]
def explanation=(explanation : String | Nil) #

[View source]
def id : String #

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

[View source]
def is_anonymous : Bool #

[View source]
def is_anonymous=(is_anonymous : Bool) #

[View source]
def is_closed : Bool #

[View source]
def is_closed=(is_closed : Bool) #

[View source]
def options : Array(PollOption) #

[View source]
def options=(options : Array(PollOption)) #

[View source]
def question : String #

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

[View source]
def total_voter_count : Int32 #

[View source]
def total_voter_count=(total_voter_count : Int32) #

[View source]
def type : String #

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

[View source]