lib/balanced.rb in balanced-0.3.8 vs lib/balanced.rb in balanced-0.3.10
- old
+ new
@@ -60,16 +60,23 @@
return false
end
true
end
- def method_missing(method, *args, &block)
- case method
- when :get, :post, :put, :delete
- self.client.send method, *args
- else
- super
- end
+ def get(*args, &block)
+ self.client.get *args
+ end
+
+ def post(*args, &block)
+ self.client.post *args
+ end
+
+ def put(*args, &block)
+ self.client.put *args
+ end
+
+ def delete(*args, &block)
+ self.client.delete *args
end
end
# configure on import so we don't have to configure for creating
# an api key