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