Module: Notion::Http::Request
- Included in:
- Client
- Defined in:
- lib/notion/http/request.rb
Overview
::Faraday::Connection.http_method
Instance Method Summary collapse
- #delete(path, options = {}) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #patch(path, options = {}) ⇒ Object
- #post(path, options = {}) ⇒ Object
- #put(path, options = {}) ⇒ Object
Instance Method Details
#delete(path, options = {}) ⇒ Object
23 24 25 |
# File 'lib/notion/http/request.rb', line 23 def delete(path, = {}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
7 8 9 |
# File 'lib/notion/http/request.rb', line 7 def get(path, = {}) request(:get, path, ) end |
#patch(path, options = {}) ⇒ Object
11 12 13 |
# File 'lib/notion/http/request.rb', line 11 def patch(path, = {}) request(:patch, path, ) end |
#post(path, options = {}) ⇒ Object
15 16 17 |
# File 'lib/notion/http/request.rb', line 15 def post(path, = {}) request(:post, path, ) end |
#put(path, options = {}) ⇒ Object
19 20 21 |
# File 'lib/notion/http/request.rb', line 19 def put(path, = {}) request(:put, path, ) end |