class Tourmaline::PollOption

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, voter_count : Int32 | Int64) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def text : String #

Option text, 1-100 characters


[View source]
def text=(text : String) #

Option text, 1-100 characters


[View source]
def voter_count : Int32 | Int64 #

Number of users that voted for this option


[View source]
def voter_count=(voter_count : Int32 | Int64) #

Number of users that voted for this option


[View source]