Class: JIRA::RequestClient
- Inherits:
-
Object
- Object
- JIRA::RequestClient
- Defined in:
- lib/mongo/jira/patch.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#request(*args, &block) ⇒ 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, &block) ⇒ 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.
10 11 12 13 14 |
# File 'lib/mongo/jira/patch.rb', line 10 def request(*args,&block) response = make_request(*args,&block) raise HTTPError.new(response) unless response.kind_of?(Net::HTTPSuccess) response end |