<aside> 👉 Links (Object base class)

CommentObject

FileObject

UserObject

EmojiObject

EquationObject

TextObject

Notion Ruby Mapping Public API Reference

</aside>

<aside> ℹī¸ ↑ Table of Contents

</aside>

1. Singleton methods

emoji_object(emoji_or_eo)

eo = EmojiObject.emoji_object "🎂"
=> #<NotionRubyMapping::EmojiObject:0x000000010983f450 @emoji="🎂", @will_update=false>

eo2 = EmojiObject.emoji_object eo
=> #<NotionRubyMapping::EmojiObject:0x000000010983f450 @emoji="🎂", @will_update=false> # eo and eo2 are equal object.

↑ Table of Contents

2. Instance methods

emoji=(str)

emoji= sets str to emoji, and set will_update flag to true.

eo = EmojiObject.emoji_object "🎂"
=> #<NotionRubyMapping::EmojiObject:0x000000010983f450 @emoji="🎂", @will_update=false>

eo.emoji = "🆗"
=> "🆗"
eo
=> #<NotionRubyMapping::EmojiObject:0x000000010983f450 @emoji="🆗", @will_update=true>

↑ Table of Contents