Sha256: d87249312e48a954d25bb1290827ff41d89c637c9461c1a4ce6f78aa1d8fc641
Contents?: true
Size: 684 Bytes
Versions: 4
Compression:
Stored size: 684 Bytes
Contents
module Rapidash module Clientable def self.included(base) base.extend ClassMethods end module ClassMethods attr_accessor :patch, :url_extension, :raise_error 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 def extension(extension) @url_extension = extension end def raise_errors @raise_error = true end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rapidash-0.1.2 | lib/rapidash/clientable.rb |
rapidash-0.1.1 | lib/rapidash/clientable.rb |
rapidash-0.1.0 | lib/rapidash/clientable.rb |
rapidash-0.0.6 | lib/rapidash/clientable.rb |