Object
An extremely simple class to hold the values of an HTTP response.
The body of the HTTP response.
The headers of the HTTP response.
The HTTP response code.
Converts the response body into a REXML::Document
# File lib/gdata/http/response.rb, line 31 def to_xml if @body begin return REXML::Document.new(@body).root rescue raise GData::Client::Error, "Response body not XML." end else return nil end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.