Class: TD::Types::Poll
Overview
Describes a poll.
Instance Attribute Summary collapse
-
#id ⇒ Integer
Unique poll identifier.
-
#is_closed ⇒ Boolean
True, if the poll is closed.
-
#options ⇒ Array<TD::Types::PollOption>
List of poll answer options.
-
#question ⇒ String
Poll question, 1-255 characters.
-
#total_voter_count ⇒ Integer
Total number of voters, participating in the poll.
Method Summary
Methods inherited from Base
Instance Attribute Details
#id ⇒ Integer
Unique poll identifier.
9 10 11 |
# File 'lib/tdlib/types/poll.rb', line 9 def id @id end |
#is_closed ⇒ Boolean
True, if the poll is closed.
9 10 11 |
# File 'lib/tdlib/types/poll.rb', line 9 def is_closed @is_closed end |
#options ⇒ Array<TD::Types::PollOption>
List of poll answer options.
9 10 11 |
# File 'lib/tdlib/types/poll.rb', line 9 def @options end |
#question ⇒ String
Poll question, 1-255 characters.
9 10 11 |
# File 'lib/tdlib/types/poll.rb', line 9 def question @question end |
#total_voter_count ⇒ Integer
Total number of voters, participating in the poll.
9 10 11 |
# File 'lib/tdlib/types/poll.rb', line 9 def total_voter_count @total_voter_count end |