Class: TD::Types::Poll

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/poll.rb

Overview

Describes a poll.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#idInteger

Unique poll identifier.

Returns:

  • (Integer)

    the current value of id



9
10
11
# File 'lib/tdlib/types/poll.rb', line 9

def id
  @id
end

#is_closedBoolean

True, if the poll is closed.

Returns:

  • (Boolean)

    the current value of is_closed



9
10
11
# File 'lib/tdlib/types/poll.rb', line 9

def is_closed
  @is_closed
end

#optionsArray<TD::Types::PollOption>

List of poll answer options.

Returns:



9
10
11
# File 'lib/tdlib/types/poll.rb', line 9

def options
  @options
end

#questionString

Poll question, 1-255 characters.

Returns:

  • (String)

    the current value of question



9
10
11
# File 'lib/tdlib/types/poll.rb', line 9

def question
  @question
end

#total_voter_countInteger

Total number of voters, participating in the poll.

Returns:

  • (Integer)

    the current value of total_voter_count



9
10
11
# File 'lib/tdlib/types/poll.rb', line 9

def total_voter_count
  @total_voter_count
end