Sha256: 1675485eb9afee66478f3d3a4bfe52afa1e72dc347c3747545a71b01a288f635

Contents?: true

Size: 333 Bytes

Versions: 39

Compression:

Stored size: 333 Bytes

Contents

require 'inferno/repositories/in_memory_repository'

module Inferno
  module Repositories
    class Validators < InMemoryRepository
      def self.index_by_id
        @all_by_id = {}
        all.each { |vs| @all_by_id[vs.url] = vs }
        @all_by_id
      end

      def all_urls
        all_by_id.keys
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
onc_certification_g10_test_kit-6.0.3 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-6.0.2 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-6.0.1 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-6.0.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-5.4.2 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-5.4.1 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-5.3.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-5.2.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-5.1.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-5.0.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-4.1.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-4.0.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.8.1 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.8.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.7.2 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.7.1 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.7.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.6.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.5.0 lib/inferno/repositiories/validators.rb
onc_certification_g10_test_kit-3.4.0 lib/inferno/repositiories/validators.rb