<aside> 👉 Links (Property base class)

ButtonProperty

CheckboxProperty

CreatedByProperty

CreatedTimeProperty

DateProperty

EmailProperty

FilesProperty

FormulaProperty

MultiSelectProperty

LastEditedByProperty

LastEditedTimeProperty

NumberProperty

PeopleProperty

PhoneNumberProperty

Property

RelationProperty

RichTextProperty

RollupProperty

SelectProperty

StatusProperty

TitleProperty

UniqueIdProperty

UrlProperty

VerificationProperty

Notion Ruby Mapping Public API Reference

</aside>

<aside> â„šī¸ ↑ Table of Contents

</aside>

1. Instance methods

last_edited_time → String, Hash

last_edited_time returns the last edited time value managed by Notion.

LastEditedTimeProperty is read-only. It does not provide DateProperty-style setters such as start_date=, end_date=, time_zone=, or clear.

  1. last_edited_time of Page property generated from properties[] returns the last edited time by ISO8601 String.

  2. last_edited_time of Database or DataSource property generated from properties[] returns an empty Hash {}. The property schema has no timestamp value.

  3. last_edited_time of Page, Database, or DataSource object metadata returns the last edited time by ISO8601 String.

    page.properties["LastEditedTimeTitle"].last_edited_time
    # => "2022-03-14T01:55:00.000Z"
    db.properties["LastEditedTimeTitle"].last_edited_time
    # => {}
    page.last_edited_time.last_edited_time
    # => "2022-03-14T01:55:00.000Z"
    db.last_edited_time.last_edited_time
    # => "2022-03-23T10:43:00.000Z"
    

DateBaseProperty filter methods

LastEditedTimeProperty inherits date and timestamp filter methods from DateBaseProperty.

DateBaseProperty is a common base class for properties that support Notion date or timestamp filters. It does not mean that every subclass is a user-editable date property.

For metadata such as ds.last_edited_time, filter methods create timestamp filters with "timestamp" => "last_edited_time". A named property uses a different "property"-based branch; generating a Hash does not guarantee that the Notion API accepts it. The timestamp filter must not include a property name.

These methods return a Query. .filter reads the generated Hash; creating the Query does not send an API request. Omit condition: and another_type: for ordinary timestamp filters.

For date arguments, Date values passed to filter_equals or filter_does_not_equal generate compound after/before filters with strict boundaries at 00:00:00 and 23:59:59. Exact endpoints are excluded from the equals range. The offset is taken from the execution environment's current local offset, not calculated for the target date. For filter_before and filter_on_or_after, a Date uses 00:00:00; for filter_after and filter_on_or_before, it uses 23:59:59. Time is formatted with its offset, DateTime uses ISO 8601, and a String is passed through.

Examples below show generated Ruby Hashes, not verified API responses. Notion's date filter documentation does not list does_not_equal; the library emits it for non-Date arguments, so API acceptance is unverified.

↑ Table of Contents

filter_before(value) → Query

Creates a filter for times before the supplied value.