Sha256: 8568ede6f8f618cbd689f389eef5cbf11171b7e803bf5aee3a6ea9111b5eb093

Contents?: true

Size: 499 Bytes

Versions: 5

Compression:

Stored size: 499 Bytes

Contents

module PoolParty
  module Verifiers
    @available_verifiers =[]
    def self.available
      @available_verifiers
    end
    
    class VerifierBase
      attr_reader :host
      
      def self.inherited(subclass)
        unless Verifiers.available.include?(subclass)
          Verifiers.available << subclass
        end
      end
      
      def host=(h=nil)
        @host ||= h
      end
      
      def name
        @name ||= self.class.to_s.top_level_class
      end
    end
    
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
auser-poolparty-1.2.10 lib/poolparty/verification/verifier_base.rb
auser-poolparty-1.2.11 lib/poolparty/verification/verifier_base.rb
auser-poolparty-1.2.12 lib/poolparty/verification/verifier_base.rb
auser-poolparty-1.2.9 lib/poolparty/verification/verifier_base.rb
fairchild-poolparty-1.2.12 lib/poolparty/verification/verifier_base.rb