class NotionRb::Api::QueryCollection

Public Class Methods

new(params) click to toggle source
Calls superclass method NotionRb::Api::Get::new
# File lib/notion_rb/api/query_collection.rb, line 6
def initialize(params)
  super

  @collection_id = params[:collection_id]
  @view_id = params[:view_id]
  @schema = nil
end

Private Instance Methods

params() click to toggle source
# File lib/notion_rb/api/query_collection.rb, line 20
def params
  {
    collectionId: @collection_id,
    collectionViewId: @view_id,
    query: { agregrate: [{}], filter: [], sort: [], filter_operation: 'and' },
    loader: { type: 'table', limit: 70, userTimeZone: 'America/Santiago', userLocale: 'en', loadContentCover: true }
  }
end
url() click to toggle source
# File lib/notion_rb/api/query_collection.rb, line 16
def url
  'queryCollection'
end