Class: NotionRubyMapping::TextObject

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

Overview

TextObject

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RichTextObject

#bold=, #code=, #color=, create_from_json, #italic=, #plain_text=, #property_values_json, #strikethrough=, text_object, #underline=

Constructor Details

#initialize(text, options = {}) ⇒ TextObject



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

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

Instance Attribute Details

#textObject

Returns the value of attribute text.



14
15
16
# File 'lib/notion_ruby_mapping/text_object.rb', line 14

def text
  @text
end

#will_updateObject (readonly)

Returns the value of attribute will_update.



14
15
16
# File 'lib/notion_ruby_mapping/text_object.rb', line 14

def will_update
  @will_update
end