Class: Telegem::Types::Poll

Inherits:
BaseType show all
Defined in:
lib/api/types.rb

Instance Attribute Summary

Attributes inherited from BaseType

#_raw_data

Instance Method Summary collapse

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.



535
536
537
538
539
# File 'lib/api/types.rb', line 535

def initialize(data)
  super(data)
  wrap_array('options', PollOption)
  wrap_array('explanation_entities', MessageEntity)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Telegem::Types::BaseType