Class: GrubY::TextQuote
- Inherits:
-
BaseObject
- Object
- BaseObject
- GrubY::TextQuote
- Defined in:
- lib/gruubY/types/extra.rb
Instance Attribute Summary
Attributes inherited from BaseObject
Instance Method Summary collapse
-
#initialize(data) ⇒ TextQuote
constructor
A new instance of TextQuote.
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