<aside> đ Links (Property base class)
Notion Ruby Mapping Public API Reference
</aside>
<aside> âšī¸ â Table of Contents
</aside>
filter_greater_than
creates a Query object for greater_than
filter.
db.properties["NumberTitle"].filter_greater_than 10
# => #<NotionRubyMapping::Query:0x0000000106bddf88 @filter={"property"=>"NumberTitle", "number"=>{"greater_than"=>10}}, @page_size=100, @sort=[], @start_cursor=nil>
### only RollupProperty (number)
db.properties["RollupTitle"].filter_greater_than 100, another_type: "number"
# => #<NotionRubyMapping::Query:0x0000000108f550b0 @filter={"property"=>"RollupTitle", "number"=>{"greater_than"=>100}}, @page_size=100, @sort=[], @start_cursor=nil>
filter_greater_than_or_equal_to
creates a Query object for greater_than_or_equal_to
filter.
db.properties["NumberTitle"].filter_greater_than_or_equal_to 10
# => #<NotionRubyMapping::Query:0x00000001055a7e30 @filter={"property"=>"NumberTitle", "number"=>{"greater_than_or_equal_to"=>10}}, @page_size=100, @sort=[], @start_cursor=nil>
### only RollupProperty (number)
db.properties["RollupTitle"].filter_greater_than_or_equal_to 100, another_type: "number"
# => #<NotionRubyMapping::Query:0x0000000108f564b0 @filter={"property"=>"RollupTitle", "number"=>{"greater_than_or_equal_to"=>100}}, @page_size=100, @sort=[], @start_cursor=nil>
filter_less_than
creates a Query object for less_than
filter.
db.properties["NumberTitle"].filter_less_than 100
# => #<NotionRubyMapping::Query:0x0000000105143e70 @filter={"property"=>"NumberTitle", "number"=>{"less_than"=>100}}, @page_size=100, @sort=[], @start_cursor=nil>
### only RollupProperty (number)
db.properties["RollupTitle"].filter_less_than 100, another_type: "number"
# => #<NotionRubyMapping::Query:0x00000001093b17f8 @filter={"property"=>"RollupTitle", "number"=>{"less_than"=>100}}, @page_size=100, @sort=[], @start_cursor=nil>
filter_less_than_or_equal_to
creates a Query object for less_than_or_equal_to
filter.
db.properties["NumberTitle"].filter_less_than_or_equal_to 100
# => #<NotionRubyMapping::Query:0x0000000106b7e740 @filter={"property"=>"NumberTitle", "number"=>{"less_than_or_equal_to"=>100}}, @page_size=100, @sort=[], @start_cursor=nil>
### only RollupProperty (number)
db.properties["RollupTitle"].filter_less_than_or_equal_to 100, another_type: "number"
# => #<NotionRubyMapping::Query:0x0000000108f247a8 @filter={"property"=>"RollupTitle", "number"=>{"less_than_or_equal_to"=>100}}, @page_size=100, @sort=[], @start_cursor=nil>
format
of Page property raises StandardError.
format
of Database property returns the number format value.
page.properties["NumberTitle"].format
# ...in `assert_page_property': format can execute only Database property. (StandardError)
db.properties["NumberTitle"].format
# => "number_with_commas"
format=
of Page property raises StandardError.
format=
of Database property sets the number format.
page.properties["NumberTitle"].format = "percent"
# ...in `assert_page_property': format can execute only Database property. (StandardError)
db.properties["NumberTitle"].format = "percent"
=> "percent"