<aside> 👉 Links (Property base class)
Notion Ruby Mapping Public API Reference
</aside>
filter_greater_than creates a Query object for greater_than filter.
ds.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)
ds.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.
ds.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)
ds.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.
ds.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)
ds.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.
ds.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)
ds.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 / DataSource property returns the number format value.
page.properties["NumberTitle"].format
# raises StandardError
ds.properties["NumberTitle"].format
# => "number_with_commas"
format= of Page property raises StandardError.
format= of Database / DataSource property sets the number format.
page.properties["NumberTitle"].format = "percent"
# raises StandardError
ds.properties["NumberTitle"].format = "percent"
# => "percent"
number of Page property returns the number value.
number of Database / DataSource property returns the hash of the number format.
For Database / DataSource property, use format to get the format value.
page.properties["NumberTitle"].number
# => 3.1415926535
ds.properties["NumberTitle"].number
# => {"format"=>"number_with_commas"}
ds.properties["NumberTitle"].format
# => "number_with_commas"
number= of Page property sets the number value.
nil clears the number value.
number= of Database / DataSource property raises StandardError.
page.properties["NumberTitle"].number = 100
# => 100
page.properties["NumberTitle"].number = nil
# => nil
ds.properties["NumberTitle"].number = 100
# raises StandardError