<aside> đ Links (Object base class)
Notion Ruby Mapping Public API Reference
</aside>
<aside> âšī¸ â Table of Contents
</aside>
MentionObject
is a class for mentions for user, page, database, date, link_preview and template_mention.
MentionObject.new "page_id" => "page_id", "plain_text" => "m_page"
=>
#<NotionRubyMapping::MentionObject:0x000000011e572e60
@options={"page_id"=>"page_id", "plain_text"=>"m_page"},
@type="mention">
MentionObject.new "user_id" => "user_id", "plain_text" => "m_user"
=>
#<NotionRubyMapping::MentionObject:0x000000011e127450
@options={"user_id"=>"user_id", "plain_text"=>"m_user"},
@type="mention">
MentionObject.new "database_id" => "database_id", "plain_text" => "m_db"
=>
#<NotionRubyMapping::MentionObject:0x000000011e128b20
@options={"database_id"=>"database_id", "plain_text"=>"m_db"},
@type="mention">
MentionObject.new "start" => "2022-03-17", "plain_text" => "m_date"
=>
#<NotionRubyMapping::MentionObject:0x000000011e5d3c60
@options={"start"=>"2022-03-17", "plain_text"=>"m_date"},
@type="mention">
MentionObject.new "template_mention" => "today"
=>
#<NotionRubyMapping::MentionObject:0x000000011cf5c158
@options={"template_mention"=>"today"},
@type="mention">
MentionObject.new "template_mention" => "now"
=>
#<NotionRubyMapping::MentionObject:0x000000011e1eebe0
@options={"template_mention"=>"now"},
@type="mention">
MentionObject.new "template_mention" => "user"
=>
#<NotionRubyMapping::MentionObject:0x000000011e1aa080
@options={"template_mention"=>"user"},
@type="mention">
MentionObject.new "link_preview" => "url", "plain_text" => "m_link"
=>
#<NotionRubyMapping::MentionObject:0x000000011e128508
@options={"link_preview"=>"url", "plain_text"=>"url", "href"=>"url"},
@type="mention">
code=(flag) color=(color) italic=(flag) strikethrough=(flag) underline=(flag)
RichTextObject
is bold/code/italic/strikethrough/underline textcolor=
bold=
, code=
, italic=
, strikethrough=
and underline=
set the correspond flag. color=
sets the object color.
property.bold = true
property.code = true
property.color = "default"
property.italic = true
property.strikethrough = true
property.underline = true