class JIRA::RequestClient

Public Instance Methods

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 12
def request(*args)
  response = make_request(*args)
  raise HTTPError.new(response) unless response.kind_of?(Net::HTTPSuccess)
  response
end