Class: Telegem::Types::ChatMemberUpdated
- Defined in:
- lib/api/types.rb
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
-
#initialize(data) ⇒ ChatMemberUpdated
constructor
A new instance of ChatMemberUpdated.
Methods inherited from BaseType
#inspect, #method_missing, #respond_to_missing?, #to_h, #to_s
Constructor Details
#initialize(data) ⇒ ChatMemberUpdated
Returns a new instance of ChatMemberUpdated.
558 559 560 561 562 563 564 565 566 567 568 |
# File 'lib/api/types.rb', line 558 def initialize(data) super(data) wrap('chat', Chat) wrap('from', User) wrap_member('old_chat_member') wrap_member('new_chat_member') 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