Class: Notion::Http::Client

Inherits:
Object
  • Object
show all
Includes:
Connection, Endpoints::DatabaseMethods, Endpoints::PageMethods, Request
Defined in:
lib/notion/http/client.rb

Overview

For http request and response

Instance Method Summary collapse

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(options = {})
  Notion::Configurable::Configuration::ATTRIBUTES.each do |key|
    send("#{key}=", options.fetch(key, Notion.config.send(key)))
  end
end