Class: Notion::Configurable::Configuration
- Inherits:
-
Object
- Object
- Notion::Configurable::Configuration
- 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
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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 |