Class: TD::Types::PollOption
- Defined in:
- lib/tdlib/types/poll_option.rb
Overview
Describes one answer option of a poll.
Instance Attribute Summary collapse
-
#is_being_chosen ⇒ Boolean
True, if the option is being chosen by a pending setPollAnswer request.
-
#is_chosen ⇒ Boolean
True, if the option was chosen by the user.
-
#text ⇒ TD::Types::String
Option text; 1-100 characters.
-
#vote_percentage ⇒ Integer
The percentage of votes for this option; 0-100.
-
#voter_count ⇒ Integer
Number of voters for this option, available only for closed or voted polls.
Method Summary
Methods inherited from Base
Instance Attribute Details
#is_being_chosen ⇒ Boolean
True, if the option is being chosen by a pending setPollAnswer request.
9 10 11 |
# File 'lib/tdlib/types/poll_option.rb', line 9 def is_being_chosen @is_being_chosen end |
#is_chosen ⇒ Boolean
True, if the option was chosen by the user.
9 10 11 |
# File 'lib/tdlib/types/poll_option.rb', line 9 def is_chosen @is_chosen end |
#text ⇒ TD::Types::String
Option text; 1-100 characters.
9 10 11 |
# File 'lib/tdlib/types/poll_option.rb', line 9 def text @text end |
#vote_percentage ⇒ Integer
The percentage of votes for this option; 0-100.
9 10 11 |
# File 'lib/tdlib/types/poll_option.rb', line 9 def vote_percentage @vote_percentage end |
#voter_count ⇒ Integer
Number of voters for this option, available only for closed or voted polls.
9 10 11 |
# File 'lib/tdlib/types/poll_option.rb', line 9 def voter_count @voter_count end |