lib/rapidash/clientable.rb in rapidash-0.0.5 vs lib/rapidash/clientable.rb in rapidash-0.0.6
- old
+ new
@@ -5,11 +5,11 @@
base.extend ClassMethods
end
module ClassMethods
- attr_accessor :patch, :url_extension
+ attr_accessor :patch, :url_extension, :raise_error
def method(method)
case method
when :http then include HTTPClient
when :oauth then include OAuthClient
@@ -23,9 +23,13 @@
@patch = true
end
def extension(extension)
@url_extension = extension
+ end
+
+ def raise_errors
+ @raise_error = true
end
end
end
end