Class: JIRA::RequestClient
- Inherits:
-
Object
- Object
- JIRA::RequestClient
- Defined in:
- lib/jira/request_client.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#request(*args) ⇒ Object
Returns the response if the request was successful (HTTP::2xx) and raises a JIRA::HTTPError if it was not successful, with the response attached.
Instance Method Details
#request(*args) ⇒ Object
Returns the response if the request was successful (HTTP::2xx) and raises a JIRA::HTTPError if it was not successful, with the response attached.
13 14 15 16 17 18 |
# File 'lib/jira/request_client.rb', line 13 def request(*args) response = make_request(*args) #binding.pry unless response.kind_of?(Net::HTTPSuccess) raise HTTPError.new(response) unless response.kind_of?(Net::HTTPSuccess) response end |