Module: Flattr::Request

Included in:
Client
Defined in:
lib/flattr/request.rb,
lib/flattr/request/oauth2.rb

Overview

Defines HTTP request methods

Defined Under Namespace

Classes: FlattrOAuth2

Instance Method Summary collapse

Instance Method Details

#delete(path, params = {}, options = {}) ⇒ Object

Perform an HTTP DELETE request



7
8
9
# File 'lib/flattr/request.rb', line 7

def delete(path, params={}, options={})
  request(:delete, path, params, options)
end

#get(path, params = {}, options = {}) ⇒ Object

Perform an HTTP GET request



12
13
14
# File 'lib/flattr/request.rb', line 12

def get(path, params={}, options={})
  request(:get, path, params, options)
end

#patch(path, params = {}, options = {}) ⇒ Object

Perform an HTTP PATCH request



27
28
29
# File 'lib/flattr/request.rb', line 27

def patch(path, params={}, options={})
  request(:patch, path, params, options)
end

#post(path, params = {}, options = {}) ⇒ Object

Perform an HTTP POST request



17
18
19
# File 'lib/flattr/request.rb', line 17

def post(path, params={}, options={})
  request(:post, path, params, options)
end

#put(path, params = {}, options = {}) ⇒ Object

Perform an HTTP PUT request



22
23
24
# File 'lib/flattr/request.rb', line 22

def put(path, params={}, options={})
  request(:put, path, params, options)
end