class JIRA::RequestClient

Public Instance Methods

make_multipart_request(*args) click to toggle source
# File lib/jira/request_client.rb, line 27
def make_multipart_request(*args)
  raise NotImplementedError
end
make_request(*args) click to toggle source
# File lib/jira/request_client.rb, line 23
def make_request(*args)
  raise NotImplementedError
end
request(*args) click to toggle source

Returns the response if the request was successful (HTTP::2xx) and raises a JIRA::HTTPError if it was not successful, with the response attached.

# File lib/jira/request_client.rb, line 11
def request(*args)
  response = make_request(*args)
  raise HTTPError, response unless response.is_a?(Net::HTTPSuccess)
  response
end
request_multipart(*args) click to toggle source
# File lib/jira/request_client.rb, line 17
def request_multipart(*args)
  response = make_multipart_request(*args)
  raise HTTPError, response unless response.is_a?(Net::HTTPSuccess)
  response
end