Module: Slideshare::Request

Includes:
HTTParty
Included in:
Api
Defined in:
lib/slideshare/request.rb

Class Method Summary collapse

Class Method Details

.do_delete(path, options = {}) ⇒ Object

Perform an HTTP DELETE request



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

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

.do_get(path, options = {}) ⇒ Object



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

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

.do_post(path, options = {}) ⇒ Object

Perform an HTTP POST request



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

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

.do_put(path, options = {}) ⇒ Object

Perform an HTTP PUT request



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

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