Class: Telegem::Types::PollOption
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
-
#initialize(data) ⇒ PollOption
constructor
A new instance of PollOption.
Methods inherited from BaseType
#inspect, #method_missing, #respond_to_missing?, #to_h, #to_s
Constructor Details
#initialize(data) ⇒ PollOption
Returns a new instance of PollOption.
557 558 559 560 561 562 563 564 |
# File 'lib/api/types.rb', line 557 def initialize(data) super(data) # Bot API 9.6 enhancements wrap('added_by_user', User) wrap('added_by_chat', Chat) # Bot API 10.0 - media support wrap('media', InputPollOptionMedia) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Telegem::Types::BaseType