Doing this:
@resp = Net::HTTP.get_response("api.something.com", "/feed/v1/offers.json?#{@params_api_string}")
I get this response in @resp:
#<Net::HTTPOK:0x7f451e9d3ef0>
How can I extract that OK, or No Content, Bad Request, Unathorized and so on in one variable? Is there some Net::HTTP function to get just that information?
should give you the message.
More methods of the HTTPResponse are available in the documentation.