Class: GrubY::MessageEntity

Inherits:
BaseObject show all
Defined in:
lib/gruubY/types/message_entity.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) ⇒ MessageEntity

Returns a new instance of MessageEntity.



9
10
11
12
# File 'lib/gruubY/types/message_entity.rb', line 9

def initialize(data)
  super(data)
  @user = User.new(@user) if @user.is_a?(Hash)
end

Dynamic Method Handling

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