<aside> 👉 Links (Property base class)
Notion Ruby Mapping Public API Reference
</aside>
These methods return a Query; .filter in the examples reads its generated Hash. Creating a condition does not send an API request or update the property value.
The positional argument is a number. Omit condition: and another_type: for an ordinary number filter; they are for nested Formula / Rollup conditions.
Creates a Query object whose number condition matches a value greater than the given number.
ds.properties["NumberTitle"].filter_greater_than(100).filter
# => {"property" => "NumberTitle", "number" => {"greater_than" => 100}}
Creates a Query object whose number condition matches a value greater than or equal to the given number.
ds.properties["NumberTitle"].filter_greater_than_or_equal_to(100).filter
# => {"property" => "NumberTitle", "number" => {"greater_than_or_equal_to" => 100}}
Creates a Query object whose number condition matches a value less than the given number.
ds.properties["NumberTitle"].filter_less_than(100).filter
# => {"property" => "NumberTitle", "number" => {"less_than" => 100}}
Creates a Query object whose number condition matches a value less than or equal to the given number.
ds.properties["NumberTitle"].filter_less_than_or_equal_to(100).filter
# => {"property" => "NumberTitle", "number" => {"less_than_or_equal_to" => 100}}
format of Page property raises StandardError.
format of Database / DataSource property returns the number format value.
page.properties["NumberTitle"].format
# raises StandardError
ds.properties["NumberTitle"].format
# => "number_with_commas"