Sha256: ef6f7518490dcf376f37fe3f9a2fcea927fe12b0db33463a66f82eb8198df65e
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
module Rapidash module Clientable def self.included(base) base.extend ClassMethods end module ClassMethods 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rapidash-0.0.3 | lib/rapidash/clientable.rb |
rapidash-0.0.2 | lib/rapidash/clientable.rb |