Class: Notion::Http::Client
- Inherits:
-
Object
- Object
- Notion::Http::Client
- Defined in:
- lib/notion/http/client.rb
Overview
For http request and response
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoints::PageMethods
#create_a_page, #retrieve_a_page, #retrieve_a_page_property_item, #update_page
Methods included from Endpoints::DatabaseMethods
#create_a_database, #query_a_database, #retrieve_a_database, #update_a_database
Methods included from Request
#delete, #get, #patch, #post, #put
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
14 15 16 17 18 |
# File 'lib/notion/http/client.rb', line 14 def initialize( = {}) Notion::Configurable::Configuration::ATTRIBUTES.each do |key| send("#{key}=", .fetch(key, Notion.config.send(key))) end end |