Permalink
Browse files

No it's not.

  • Loading branch information...
1 parent a2196a7 commit 564945b996c8210322d359d7feacb682af4abb09 @joho joho committed Feb 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/best3.rb
View
@@ -26,12 +26,12 @@ def initialize(*args)
end
def call(request_method, uri, headers = {}, body = nil)
- YESTHISMETHODISCALLEDUNDERSCORE!(request_method, uri, headers.clone, body)
+ perform_request(request_method, uri, headers.clone, body)
end
private
- def YESTHISMETHODISCALLEDUNDERSCORE!(request_method, uri, headers, body = nil)
+ def perform_request(request_method, uri, headers, body = nil)
response = Typhoeus::Request.send(request_method.downcase, "#{@host}#{uri}", :headers => make_headers(request_method, uri, headers, body), :body => body)
OpenStruct.new({:code => response.code, :headers => response.headers_hash, :body => Nokogiri::XML(response.body), :response => response})
end

0 comments on commit 564945b

Please sign in to comment.