lib/sucker/response.rb in sucker-1.4.1 vs lib/sucker/response.rb in sucker-1.5.0
- old
+ new
@@ -62,20 +62,20 @@
Hash.from_xml(xml)
end
# Checks if the HTTP response is OK.
#
- # response = worker.get
+ # response = request.get
# response.valid?
# => true
#
def valid?
- code == '200'
+ code == 200
end
# The XML document.
#
- # response = worker.get
+ # response = request.get
# response.xml
#
def xml
@xml ||= Nokogiri::XML(body)
end