Class: Notion::Configurable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/notion/configurable.rb

Overview

Access Notion.config to get configurations

Constant Summary collapse

ATTRIBUTES =
%i[token endpoint timeout].freeze

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



24
25
26
27
28
# File 'lib/notion/configurable.rb', line 24

def initialize
  @token = ENV["NOTION_API_TOKEN"]
  @endpoint = "https://api.notion.com/v1"
  @timeout = 20
end