Sha256: e46ea8960a136a4942e9027c40b060d0e9b90ab062df3d2d409e1d38af255053

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

module PansophyAuthenticator
  module Configuration
    module Verification
      class Result
        include Adamantium

        attr_reader :errors

        def initialize(errors = [])
          @errors = Array(errors)
        end

        def valid?
          @errors.empty?
        end

        def +(other)
          transform do
            @errors += other.errors
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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