Class: GrubY::TextQuote

Inherits:
BaseObject 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) ⇒ TextQuote

Returns a new instance of TextQuote.



41
42
43
44
# File 'lib/gruubY/types/extra.rb', line 41

def initialize(data)
  super(data)
  @entities = Array(@entities).map { |e| MessageEntity.new(e) }
end

Dynamic Method Handling

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