Skip to content

class Tourmaline::PollAnswer
inherits Reference #

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

Included modules

JSON::Serializable

Constructors#

.new(poll_id, user, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#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

#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

#poll_id : String #

Unique poll identifier

View source

#poll_id=(poll_id : String) #

Unique poll identifier

View source

#user : Tourmaline::User #

The user, who changed the answer to the poll

View source

#user=(user : Tourmaline::User) #

The user, who changed the answer to the poll

View source