Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 1adf103bebfc86fb38bba163b4471a9577196c57 1 parent 82dd615
Elijah Miller authored December 05, 2008

Showing 1 changed file with 21 additions and 0 deletions. Show diff stats Hide diff stats

  1. 21  lib/httparty.rb
21  lib/httparty.rb
@@ -121,4 +121,25 @@ def normalize_base_uri(url) #:nodoc:
121 121
         "http#{'s' if use_ssl}://#{url}"
122 122
       end
123 123
   end
  124
+
  125
+  class Basement
  126
+    include HTTParty
  127
+  end
  128
+  
  129
+  def self.get(*args)
  130
+    Basement.get(*args)
  131
+  end
  132
+  
  133
+  def self.post(*args)
  134
+    Basement.post(*args)
  135
+  end
  136
+
  137
+  def self.put(*args)
  138
+    Basement.put(*args)
  139
+  end
  140
+
  141
+  def self.delete(*args)
  142
+    Basement.delete(*args)
  143
+  end
  144
+
124 145
 end

0 notes on commit 1adf103

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