require 'anima' require 'memoizable' module PansophyAuthenticator module Configuration class Base include Anima.new :bucket_name, :file_path, :application, :cache_store include Memoizable def local? false end def remote? !local? end def errors return ['Application is not defined'] if @application.nil? [] end def valid? verification.valid? end def verification Result.new errors end memoize :verification end end end