Permalink
Browse files

add put & delete methods

  • Loading branch information...
1 parent fb13289 commit 708ee7b2e777218e7d264263b860a968aad316c7 Josh Hull committed Jan 17, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/apiary.rb
View
8 lib/apiary.rb
@@ -18,6 +18,14 @@ def post(path = nil)
__set_routing(:get, path)
end
+ def put(path = nil)
+ __set_routing(:put, path)
+ end
+
+ def delete(path = nil)
+ __set_routing(:put, path)
+ end
+
def version(number)
@version = number
end

0 comments on commit 708ee7b

Please sign in to comment.