Class: NotionRubyMapping::TextObject

Inherits:
RichTextObject show all
Defined in:
lib/notion_ruby_mapping/objects/text_object.rb

Overview

TextObject

Instance Attribute Summary collapse

Attributes inherited from RichTextObject

#options

Instance Method Summary collapse

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

Parameters:

  • text (String)

8
9
10
11
12
# File 'lib/notion_ruby_mapping/objects/text_object.rb', line 8

def initialize(text, options = {})
  super "text", {"plain_text" => text}.merge(options)
  @text = text
  @will_update = false
end

Instance Attribute Details

#textObject

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_updateObject (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