Module: TropoRest::Request

Included in:
Client
Defined in:
lib/tropo_rest/request.rb

Overview

Defines HTTP request methods

Instance Method Summary collapse

Instance Method Details

#delete(*args) ⇒ Object

Perform an HTTP DELETE request



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

def delete(*args)
  request(:delete, *args)
end

#get(*args) ⇒ Object

Perform an HTTP GET request



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

def get(*args)
  request(:get, *args)
end

#post(*args) ⇒ Object

Perform an HTTP POST request



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

def post(*args)
  request(:post, *args)
end

#put(*args) ⇒ Object

Perform an HTTP PUT request



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

def put(*args)
  request(:put, *args)
end