HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📌
hkob's Notion
/
NotionRubyMapping idea note
NotionRubyMapping idea note
/
Notion Ruby Mapping Public API Reference
Notion Ruby Mapping Public API Reference
/
⭕
FileObject
⭕

FileObject

👉
Links (Object base class)
⭕
CommentObject
⭕
FileObject
⭕
TextObject
⭕
EmojiObject
⭕
FileUploadObject
⭕
UserObject
⭕
EquationObject
⭕
MentionObject
Notion Ruby Mapping Public API Reference
Notion Ruby Mapping Public API Reference
ℹ️
↑ Table of Contents
1. Class methodsfile_object(url_or_fo)2. Instance methodsurl=(str) → str

1. Class methods

file_object(url_or_fo)

  • [PARAM] url_or_fo
    • url (String)
    • existing FileObject
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

  • [PARAM] str str (String)
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