Class: GrubY::MessageOriginUser

Inherits:
MessageOrigin show all
Defined in:
lib/gruubY/types/extra.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) ⇒ MessageOriginUser

Returns a new instance of MessageOriginUser.



66
67
68
69
# File 'lib/gruubY/types/extra.rb', line 66

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

Dynamic Method Handling

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