Module: Notion

Defined in:
lib/notion/client.rb,
lib/notion/config.rb,
lib/notion/logger.rb,
lib/notion/version.rb,
lib/notion/api/error.rb,
lib/notion/api/errors.rb,
lib/notion/api/endpoints.rb,
lib/notion/faraday/request.rb,
lib/notion/messages/message.rb,
lib/notion/pagination/cursor.rb,
lib/notion/faraday/connection.rb,
lib/notion/api/endpoints/pages.rb,
lib/notion/api/endpoints/users.rb,
lib/notion/api/endpoints/blocks.rb,
lib/notion/api/endpoints/search.rb,
lib/notion/api/endpoints/comments.rb,
lib/notion/api/endpoints/databases.rb,
lib/notion/api/errors/notion_error.rb,
lib/notion/api/errors/internal_error.rb,
lib/notion/faraday/response/wrap_error.rb,
lib/notion/api/errors/too_many_requests.rb,
lib/notion/faraday/response/raise_error.rb

Defined Under Namespace

Modules: Api, Config, Faraday, Messages Classes: Client, Logger

Constant Summary collapse

VERSION =
'1.2.2'
NOTION_REQUEST_VERSION =
'2022-02-22'

Class Method Summary collapse

Class Method Details

.configObject



48
49
50
# File 'lib/notion/config.rb', line 48

def config
  Config
end

.configureObject



44
45
46
# File 'lib/notion/config.rb', line 44

def configure
  block_given? ? yield(Config) : Config
end