FileObject

1. Singleton 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.

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>