Method: RestClient::Response#to_str

Defined in:
lib/restclient/response.rb

#to_strString

Convert the HTTP response body to a pure String object.

Returns:

  • (String)


33
34
35
# File 'lib/restclient/response.rb', line 33

def to_str
  body
end