class Tourmaline::PollAnswer
- Tourmaline::PollAnswer
- Reference
- Object
Overview
This object represents an answer of a user in a non-anonymous poll.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(poll_id : String, user : Tourmaline::User, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#option_ids : Array(Int32 | Int64)
0-based identifiers of answer options, chosen by the user.
-
#option_ids=(option_ids : Array(Int32 | Int64))
0-based identifiers of answer options, chosen by the user.
-
#poll_id : String
Unique poll identifier
-
#poll_id=(poll_id : String)
Unique poll identifier
-
#user : Tourmaline::User
The user, who changed the answer to the poll
-
#user=(user : Tourmaline::User)
The user, who changed the answer to the poll
Constructor Detail
def self.new(poll_id : String, user : Tourmaline::User, option_ids : Array(Int32 | Int64) = [] of Int32 | Int64)
#
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.
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.