Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1adf103bebfc86fb38bba163b4471a9577196c57 1 parent 82dd615
@jqr jqr authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.