Skip to content

class Tourmaline::PollOption
inherits Reference #

This object contains information about one answer option in a poll.

Included modules

JSON::Serializable

Constructors#

.new(text, voter_count) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#text : String #

Option text, 1-100 characters

View source

#text=(text : String) #

Option text, 1-100 characters

View source

#voter_count : Int32 | Int64 #

Number of users that voted for this option

View source

#voter_count=(voter_count : Int32 | Int64) #

Number of users that voted for this option

View source