Browse files

Stupid simple support for HTTParty.get/post/put/delete.

  • Loading branch information...
1 parent 82dd615 commit 1adf103bebfc86fb38bba163b4471a9577196c57 @jqr jqr committed Dec 5, 2008
Showing with 21 additions and 0 deletions.
  1. +21 −0 lib/httparty.rb
View
21 lib/httparty.rb
@@ -121,4 +121,25 @@ def normalize_base_uri(url) #:nodoc:
"http#{'s' if use_ssl}://#{url}"
end
end
+
+ class Basement
+ include HTTParty
+ end
+
+ def self.get(*args)
+ Basement.get(*args)
+ end
+
+ def self.post(*args)
+ Basement.post(*args)
+ end
+
+ def self.put(*args)
+ Basement.put(*args)
+ end
+
+ def self.delete(*args)
+ Basement.delete(*args)
+ end
+
end

0 comments on commit 1adf103

Please sign in to comment.