class

Tourmaline::PollAnswer

Inherits JSON::Serializable / Reference / Object

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

Constructors

new(poll_id : String, user : Tourmaline::User, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

option_ids

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

Source
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.

Source
poll_id

Unique poll identifier

Source
poll_id=(poll_id : String)

Unique poll identifier

Source
user

The user, who changed the answer to the poll

Source
user=(user : Tourmaline::User)

The user, who changed the answer to the poll

Source