Sha256: f3d478d554d30d9faabeb0b44b17633d2eb3cc191412d9fe014d2ce79a8086fa

Contents?: true

Size: 558 Bytes

Versions: 5

Compression:

Stored size: 558 Bytes

Contents

require 'anima'
require 'memoizable'

module PansophyAuthenticator
  module Configuration
    class Instance
      include Anima.new :local, :bucket_name, :file_path, :application, :cache_store
      include Memoizable

      def local?
        @local
      end

      def remote?
        !local?
      end

      def valid?
        verification.valid?
      end

      def errors
        verification.errors
      end

      private

      def verification
        Verification::Verify.new(self).call
      end
      memoize :verification
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pansophy_authenticator-0.4.3 lib/pansophy_authenticator/configuration/instance.rb
pansophy_authenticator-0.4.2 lib/pansophy_authenticator/configuration/instance.rb
pansophy_authenticator-0.4.1 lib/pansophy_authenticator/configuration/instance.rb
pansophy_authenticator-0.4.0 lib/pansophy_authenticator/configuration/instance.rb
pansophy_authenticator-0.3.0 lib/pansophy_authenticator/configuration/instance.rb