Module: Yammer::Request

Defined in:
lib/yammer/request.rb

Overview

Defines HTTP request methods

Instance Method Summary collapse

Instance Method Details

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

Perform an HTTP DELETE request



20
21
22
# File 'lib/yammer/request.rb', line 20

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

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

Perform an HTTP GET request



5
6
7
# File 'lib/yammer/request.rb', line 5

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

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

Perform an HTTP POST request



10
11
12
# File 'lib/yammer/request.rb', line 10

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

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

Perform an HTTP PUT request



15
16
17
# File 'lib/yammer/request.rb', line 15

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