Class: GrubY::ChatFullInfo

Inherits:
BaseObject show all
Defined in:
lib/gruubY/types/chat_info.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#api, #client

Instance Method Summary collapse

Methods inherited from BaseObject

#[], #dig, field_names, fields, #method_missing, #respond_to_missing?, #to_h

Constructor Details

#initialize(data) ⇒ ChatFullInfo

Returns a new instance of ChatFullInfo.



23
24
25
26
27
# File 'lib/gruubY/types/chat_info.rb', line 23

def initialize(data)
  super(data)
  @personal_chat = Chat.new(@personal_chat) if @personal_chat.is_a?(Hash)
  @parent_chat = Chat.new(@parent_chat) if @parent_chat.is_a?(Hash)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GrubY::BaseObject