Sha256: 990ef9271df9da76b847d99c84d028e8916693c26408c709e46b7204fbb73864

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

module Notion
  class Client
    include Operations::Search

    def initialize(token:, notion_version: "2021-05-13")
      Notion.api_token = token
      Notion.notion_version = notion_version
    end

    def blocks
      Blocks.new
    end

    def databases
      Databases.new
    end

    def pages
      Pages.new
    end

    def users
      Users.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.4.0 lib/notion-sdk-ruby/client.rb