class Tourmaline::PollAnswer

Overview

This object represents an answer of a user in a non-anonymous poll.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(poll_id : String, user : Tourmaline::User, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64) #

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

[View source]

Instance Method Detail

def option_ids : Array(Int32 | Int64) #

0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.


[View source]
def option_ids=(option_ids : Array(Int32 | Int64)) #

0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.


[View source]
def poll_id : String #

Unique poll identifier


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

Unique poll identifier


[View source]
def user : Tourmaline::User #

The user, who changed the answer to the poll


[View source]
def user=(user : Tourmaline::User) #

The user, who changed the answer to the poll


[View source]