Class: Telegem::Types::ChatJoinRequest
- Defined in:
- lib/api/types.rb
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
-
#initialize(data) ⇒ ChatJoinRequest
constructor
A new instance of ChatJoinRequest.
Methods inherited from BaseType
#inspect, #method_missing, #respond_to_missing?, #to_h, #to_s
Constructor Details
#initialize(data) ⇒ ChatJoinRequest
Returns a new instance of ChatJoinRequest.
609 610 611 612 613 614 615 616 617 |
# File 'lib/api/types.rb', line 609 def initialize(data) super(data) wrap('chat', Chat) wrap('from', User) wrap('invite_link', ChatInviteLink) if @_raw_data['date'] && !@_raw_data['date'].is_a?(Time) @_raw_data['date'] = Time.at(@_raw_data['date']) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Telegem::Types::BaseType