<aside> 👉 Links (Property base class)

ButtonProperty

CreatedTimeProperty

FilesProperty

LastEditedTimeProperty

PeopleProperty

RichTextProperty

StatusProperty

UrlProperty

CheckboxProperty

DateProperty

FormulaProperty

MultiSelectProperty

PhoneNumberProperty

RollupProperty

TitleProperty

CreatedByProperty

EmailProperty

LastEditedByProperty

NumberProperty

RelationProperty 🚧

SelectProperty

UniqueIdProperty

Notion Ruby Mapping Public API Reference

</aside>

<aside> 💡

[P] means methods for Page Property, [DB/DS] means methods for Database or DataSource Property.

</aside>

1. Instance methods

checkbox → Boolean, Hash

  1. checkbox of Page property returns the boolean property values of the page.

  2. 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
    # => {}
    

[P] checkbox=(value)

  1. checkbox=(value) of Page property sets the boolean property value of the page and sets will_update_flag to true.

  2. Set true or false as value. Checkbox property cannot be set to nil; use false when the checkbox is unchecked.

  3. 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)
    

filter_does_not_equal(value) → Query

filter_equals(value) → Query