Module: Notion::Api::Endpoints::Search
- Included in:
- Notion::Api::Endpoints
- Defined in:
- lib/notion/api/endpoints/search.rb
Instance Method Summary collapse
-
#search(options = {}) ⇒ Object
Searches all pages and child pages that are shared with the integration.
Instance Method Details
#search(options = {}) ⇒ Object
Searches all pages and child pages that are shared with the integration. The results may include databases.
29 30 31 32 33 34 35 36 37 |
# File 'lib/notion/api/endpoints/search.rb', line 29 def search( = {}) if block_given? Pagination::Cursor.new(self, :search, ).each do |page| yield page end else post('search', ) end end |