Method: Net::HTTPResponse#value
- Defined in:
- lib/net/http/response.rb
#value ⇒ Object
Raises an HTTP error if the response is not 2xx (success).
285 286 287 |
# File 'lib/net/http/response.rb', line 285 def value error! unless self.kind_of?(Net::HTTPSuccess) end |