<aside> đ Links (Property base class)
Notion Ruby Mapping Public API Reference
</aside>
<aside> âšī¸ â Table of Contents
</aside>
<aside> đĄ [P] means methods for Page Property, [D] means methods for Database Property.
</aside>
files
of Page property returns the Array of FileObject.
files
of Database property returns an empty Hash {}.
page.properties["File&MediaTitle"].files
=> [<NotionRubyMapping::FileObject:...>]
db.properties["File&MediaTitle"].files
=> {}
file=(value)
of Page property sets the email address value and set will_update_flag to true.
file=(value)
of Database property raises StandardError.
page.properties["MailTitle"].email = "[email protected]"
=> "[email protected]"
db.properties["MailTitle"].email = "[email protected]"
# ...:in `assert_page_property': email= can execute only Page property. (StandardError)
filter_is_empty
creates a Query object for is_empty
filter.
db.properties["CreatedByTitle"].filter_is_empty
=> #<NotionRubyMapping::Query:0x0000000106af9ef0 @filter={"property"=>"CreatedByTitle", "created_by"=>{"is_empty"=>true}}, @page_size=100, @sort=[], @start_cursor=nil>
filter_is_not_empty
creates a Query object for is_not_empty
filter.
db.properties["CreatedByTitle"].filter_is_not_empty
=> #<NotionRubyMapping::Query:0x00000001104b7290 @filter={"property"=>"CreatedByTitle", "created_by"=>{"is_not_empty"=>true}}, @page_size=100, @sort=[], @start_cursor=nil>