lib/rapidash/clientable.rb in rapidash-0.0.3 vs lib/rapidash/clientable.rb in rapidash-0.0.4
- old
+ new
@@ -5,17 +5,23 @@
base.extend ClassMethods
end
module ClassMethods
+ attr_accessor :patch
+
def method(method)
case method
when :http then include HTTPClient
when :oauth then include OAuthClient
when :test then include TestClient
else
raise ConfigurationError.new "Invalid API Authentication Method"
end
+ end
+
+ def use_patch
+ @patch = true
end
end
end
end