Class: Notion::Objects::RichText
- Defined in:
- lib/notion/objects/types.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], #deconstruct_keys, #in_trash?, #initialize, #inspect, #method_missing, #respond_to_missing?
Constructor Details
This class inherits a constructor from Notion::Objects::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Notion::Objects::Base
Instance Method Details
#to_s ⇒ Object
51 52 53 |
# File 'lib/notion/objects/types.rb', line 51 def to_s raw["plain_text"] || raw.dig("text", "content").to_s end |