Sha256: 71250bad3c98eb192f71b44bfbabdc9247f4d9c2229702f18080bacb16d0c657
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
module Rapidash module Clientable def self.included(base) base.extend ClassMethods end module ClassMethods attr_accessor :patch, :url_extension 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapidash-0.0.5 | lib/rapidash/clientable.rb |