Class: TD::Types::Poll
Overview
Describes a poll.
Instance Attribute Summary collapse
-
#close_date ⇒ Integer
Point in time (Unix timestamp) when the poll will be automatically closed.
-
#id ⇒ Integer
Unique poll identifier.
-
#is_anonymous ⇒ Boolean
True, if the poll is anonymous.
-
#is_closed ⇒ Boolean
True, if the poll is closed.
-
#open_period ⇒ Integer
Amount of time the poll will be active after creation, in seconds.
-
#options ⇒ Array<TD::Types::PollOption>
List of poll answer options.
-
#question ⇒ TD::Types::String
Poll question; 1-300 characters.
-
#recent_voter_user_ids ⇒ Array<Integer>
User identifiers of recent voters, if the poll is non-anonymous.
-
#total_voter_count ⇒ Integer
Total number of voters, participating in the poll.
-
#type ⇒ TD::Types::PollType
Type of the poll.
Method Summary
Methods inherited from Base
Instance Attribute Details
#close_date ⇒ Integer
Point in time (Unix timestamp) when the poll will be automatically closed.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def close_date @close_date end |
#id ⇒ Integer
Unique poll identifier.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def id @id end |
#is_anonymous ⇒ Boolean
True, if the poll is anonymous.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def is_anonymous @is_anonymous end |
#is_closed ⇒ Boolean
True, if the poll is closed.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def is_closed @is_closed end |
#open_period ⇒ Integer
Amount of time the poll will be active after creation, in seconds.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def open_period @open_period end |
#options ⇒ Array<TD::Types::PollOption>
List of poll answer options.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def @options end |
#question ⇒ TD::Types::String
Poll question; 1-300 characters.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def question @question end |
#recent_voter_user_ids ⇒ Array<Integer>
User identifiers of recent voters, if the poll is non-anonymous.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def recent_voter_user_ids @recent_voter_user_ids end |
#total_voter_count ⇒ Integer
Total number of voters, participating in the poll.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def total_voter_count @total_voter_count end |
#type ⇒ TD::Types::PollType
Type of the poll.
14 15 16 |
# File 'lib/tdlib/types/poll.rb', line 14 def type @type end |