Class: Telegem::Types::Poll
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
-
#initialize(data) ⇒ Poll
constructor
A new instance of Poll.
Methods inherited from BaseType
#inspect, #method_missing, #respond_to_missing?, #to_h, #to_s
Constructor Details
#initialize(data) ⇒ Poll
Returns a new instance of Poll.
570 571 572 573 574 575 576 577 |
# File 'lib/api/types.rb', line 570 def initialize(data) super(data) wrap_array('options', PollOption) wrap_array('explanation_entities', MessageEntity) # Bot API 10.0 - poll media support wrap('media', PollMedia) wrap('explanation_media', PollMedia) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Telegem::Types::BaseType