class

Tourmaline::PollOption

Inherits JSON::Serializable / Reference / Object

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

Constructors

new(text : String, voter_count : Int32 | Int64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

text

Option text, 1-100 characters

Source
text=(text : String)

Option text, 1-100 characters

Source
voter_count

Number of users that voted for this option

Source
voter_count=(voter_count : Int32 | Int64)

Number of users that voted for this option

Source