Sha256: 01e14b9b1949324fbd44df37e5caabc5015018a7001b385dc187b34e18c6b3a2

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

module Notion
  class Databases
    def retrieve(id)
      RequestClient.active_client.get("/v1/databases/#{id}")
    end

    def list
      RequestClient.active_client.get("/v1/databases")
    end

    def query(id, body)
      RequestClient.active_client.post("/v1/databases/#{id}/query", body: body.to_json)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.3.1 lib/notion-sdk-ruby/resources/databases.rb
notion-sdk-ruby-0.3.0 lib/notion-sdk-ruby/resources/databases.rb