Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

FTFY #1

Merged
merged 1 commit into from

2 participants

John Barton Ryan Allen
John Barton

No description provided.

Ryan Allen ryan-allen merged commit fb1d27c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 9, 2012
  1. John Barton

    No it's not.

    joho authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/best3.rb
4 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
Something went wrong with that request. Please try again.