method

with_response

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: GemcutterUtilities
with_response(response, error_prefix = nil) public

If response is an HTTP Success (2XX) response, yields the response if a block was given or shows the response body to the user.

If the response was not successful, shows an error to the user including the error_prefix and the response body.

Show source
Register or log in to add new notes.