Module: TumblrOAuth::Request

Included in:
Client
Defined in:
lib/tumblr-oauth/request.rb

Instance Method Summary collapse

Instance Method Details

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

Perform an HTTP DELETE request



19
20
21
# File 'lib/tumblr-oauth/request.rb', line 19

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

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

Perform an HTTP GET request



4
5
6
# File 'lib/tumblr-oauth/request.rb', line 4

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

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

Perform an HTTP POST request



9
10
11
# File 'lib/tumblr-oauth/request.rb', line 9

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

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

Perform an HTTP PUT request



14
15
16
# File 'lib/tumblr-oauth/request.rb', line 14

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