lib/jkl/rest_client.rb in jakal-0.1.0 vs lib/jkl/rest_client.rb in jakal-0.1.1

- old
+ new

@@ -1,10 +1,9 @@ require 'net/http' require 'hpricot' module Jkl - class << self def post_to(uri, post_args) begin resp, data = Net::HTTP.post_form(uri, post_args) @@ -29,12 +28,11 @@ rescue Errno::ECONNREFUSED => e puts("WARN: Connection refused: #{e}") end end - def get_from_as_xml(uri) + def get_xml_from(uri) Hpricot.XML get_from uri end end - -end \ No newline at end of file +end