<aside> 👉 Links (Property base class)

CheckboxProperty

DateProperty

FormulaProperty

MultiSelectProperty

PhoneNumberProperty

RollupProperty

TitleProperty

CreatedByProperty

EmailProperty

LastEditedByProperty

NumberProperty

RelationProperty

SelectProperty

UrlProperty

CreatedTimeProperty

FilesProperty

LastEditedTimeProperty

PeopleProperty

RichTextProperty

StatusProperty

Notion Ruby Mapping Public API Reference

</aside>

<aside> ℹī¸ ↑ Table of Contents

</aside>

1. Instance methods

filter_greater_than(value) → Query

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>

↑ Table of Contents

filter_greater_than_or_equal_to(value) → Query

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>

↑ Table of Contents

filter_less_than(value) → Query

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>

↑ Table of Contents

filter_less_than_or_equal_to(value) → Query

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>

↑ Table of Contents

[D] format → String

  1. format of Page property raises StandardError.

  2. 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"
    

↑ Table of Contents

[D] format=(value)

  1. format= of Page property raises StandardError.

  2. 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"
    

↑ Table of Contents

number → String, Hash