Manuals | ㅤ | ||
Examples |
A linked view of the test database is placed at the bottom of this page. A link to the method reference is provided at the end of the description.
- Preparation (instance → self.instance → NotionCache, create_client → create_client(notion_token, wait: 0.1))
- Retrieve a database (find → self.find(id, dry_run: false))
- Obtain properties (properties → properties → PropertyCache)
- Query database without filter (query_database → query_database(query = nil, dry_run: false) → List)
- Count all_pages (Enumerable → each { |item| ... } → self each → Enumerator)
- Obtain all page title (Enumerable → each { |item| ... } → self each → Enumerator, title → title → String)
- Query database with filter (query_database → query_database(query = nil, dry_run: false) → List, filter_equals → , ascending → ascending(property) )
- Count select3_pages (Enumerable → each { |item| ... } → self each → Enumerator)
- Obtain select3_pages title (Enumerable → each { |item| ... } → self each → Enumerator, title → title → String)
- Obtain the first page (Enumerable → each { |item| ... } → self each → Enumerator)
- Obtain the multi_select_names of the page (properties → properties → PropertyCache, multi_select_names → multi_select_names → Array)
Sample table
Title
TextTitle
NumberTitle
SelectTitle
MultiSelectTitle
DateTitle
UserTitle
File&MediaTitle
CheckboxTitle
UrlTitle
MailTitle
TelTitle
CreatedTimeTitle
CreatedByTitle
LastEditedTimeTitle
LastEditedByTitle
FormulaTitle
RelationTitle
RollupTitle
ID
def
1.41421356
Select 3
Multi Select 2
Multi Select 1
‣

CheckboxTitle
Feb 7, 2022 09:29 PM
Sep 1, 2022 04:35 AM
Apr 29, 2025 03:26 AM
3
abc
notion_ruby_mapping_test_data
Feb 21, 2022
‣
高専HP
Sample table

2
Select 2
Multi Select 2
Feb 11, 2022 → Feb 12, 2022
CheckboxTitle
Feb 7, 2022 09:29 PM
Mar 17, 2022 12:43 PM
Apr 29, 2025 03:26 AM
2
new text
3.1415926535
Select 3
Multi Select 2
Mar 14, 2022

CheckboxTitle
Mar 10, 2022 04:13 AM
Sep 1, 2022 05:03 AM
Apr 29, 2025 03:26 AM
5