Module: MovieRexx::Request

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

Instance Method Summary collapse

Instance Method Details

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


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

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

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


3
4
5
# File 'lib/movie_rexx/request.rb', line 3

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

#last_responseObject


19
20
21
# File 'lib/movie_rexx/request.rb', line 19

def last_response
  @last_response if defined? @last_response
end

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


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

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

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


11
12
13
# File 'lib/movie_rexx/request.rb', line 11

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