Class: NotionRubyMapping::TextObject
- Inherits:
-
RichTextObject
- Object
- RichTextObject
- NotionRubyMapping::TextObject
- Defined in:
- lib/notion_ruby_mapping/objects/text_object.rb
Overview
TextObject
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
-
#will_update ⇒ Object
readonly
Returns the value of attribute will_update.
Attributes inherited from RichTextObject
Instance Method Summary collapse
- #initialize(text, options = {}) ⇒ TextObject constructor
Methods inherited from RichTextObject
#bold=, #clear_will_update, #code=, #color=, create_from_json, #href=, #italic=, #plain_text=, #property_values_json, #strikethrough=, text_object, #underline=
Constructor Details
#initialize(text, options = {}) ⇒ TextObject
8 9 10 11 12 |
# File 'lib/notion_ruby_mapping/objects/text_object.rb', line 8 def initialize(text, = {}) super "text", {"plain_text" => text}.merge() @text = text @will_update = false end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
13 14 15 |
# File 'lib/notion_ruby_mapping/objects/text_object.rb', line 13 def text @text end |
#will_update ⇒ Object (readonly)
Returns the value of attribute will_update.
13 14 15 |
# File 'lib/notion_ruby_mapping/objects/text_object.rb', line 13 def will_update @will_update end |