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.
589 590 591 592 593 594 595 596 597 |
# File 'lib/api/types.rb', line 589 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