module Rapidash module Clientable def self.included(base) base.extend ClassMethods end module ClassMethods attr_accessor :patch 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 end end end