Skip to content
Browse files

made the options optional on the quick request methods

  • Loading branch information...
1 parent 71f005f commit 887257bf874b1f3166f4158a316c56f5cfbdee89 @pauldix pauldix committed Oct 27, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/typhoeus/request.rb
View
8 lib/typhoeus/request.rb
@@ -92,19 +92,19 @@ def self.run(url, params)
r.response
end
- def self.get(url, params)
+ def self.get(url, params = {})
run(url, params.merge(:method => :get))
end
- def self.post(url, params)
+ def self.post(url, params = {})
run(url, params.merge(:method => :post))
end
- def self.put(url, params)
+ def self.put(url, params = {})
run(url, params.merge(:method => :put))
end
- def self.delete(url, params)
+ def self.delete(url, params = {})
run(url, params.merge(:method => :delete))
end
end

0 comments on commit 887257b

Please sign in to comment.
Something went wrong with that request. Please try again.