<aside> 👉 Links (Property base class)
Notion Ruby Mapping Public API Reference
</aside>
<aside> 💡
[P] means methods for Page Property, [DB/DS] means methods for Database or DataSource Property.
</aside>
checkbox of Page property returns the boolean property values of the page.
checkbox of Database or DataSource property returns the schema Hash. For Checkbox property, it is an empty Hash {}.
page.properties["CheckboxTitle"].checkbox
# => true
ds.properties["CheckboxTitle"].checkbox
# => {}
checkbox=(value) of Page property sets the boolean property value of the page and sets will_update_flag to true.
Set true or false as value. Checkbox property cannot be set to nil; use false when the checkbox is unchecked.
checkbox=(value) of Database or DataSource property raises StandardError.
page.properties["CheckboxTitle"].checkbox = true
# => true
page.properties["CheckboxTitle"].checkbox = false
# => false
ds.properties["CheckboxTitle"].checkbox = true
# ...:in `assert_page_property': checkbox= can execute only Page property. (StandardError)