<aside> 👉 Links (Object base class)

CommentObject

FileObject

EmojiObject

MentionObject

EquationObject

TextObject

Notion Ruby Mapping Public API Reference

</aside>

<aside> ℹī¸ ↑ Table of Contents

</aside>

1. Singleton methods

file_object(url_or_fo)

fo = FileObject.file_object "file_url"
=> #<NotionRubyMapping::FileObject:0x0000000107af8220 @type="external", @url="file_url", @will_update=false>

fo2 = FileObject.file_object fo
=> #<NotionRubyMapping::FileObject:0x0000000107af8220 @type="external", @url="file_url", @will_update=false>
# fo and fo2 are equal object.

↑ Table of Contents

2. Instance methods

url=(str) → str

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

fo.url = "another file_url"
=> "another file_url"
fo
=> #<NotionRubyMapping::FileObject:0x0000000107af8220 @name="another file_url", @type="external", @url="another file_url", @will_update=true>

↑ Table of Contents