Created
October 17, 2014 19:29
-
-
Save sente/ff6561bfef21294e4b3b to your computer and use it in GitHub Desktop.
HTTPartyDebug.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTParty | |
require 'httparty' | |
class HTTPartyDebug | |
@@capture = StringIO.new | |
include HTTParty | |
debug_output @@capture | |
default_timeout 5 | |
def method_missing(m) | |
self.first.send m | |
end | |
def self.capture | |
@@capture | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment