Sha256: fc220c062c9b2d5b3d72b8ab8cf1fff6f660fac037310b3a82253c0f86b336c2

Contents?: true

Size: 554 Bytes

Versions: 58

Compression:

Stored size: 554 Bytes

Contents

module Hyrax
  class RestrictionService
    class << self
      private

        def presenter_class
          raise "RestrictionService is an Abstract class and should be extended. Implement presenter_class in the subclass"
        end

        def presenters(builder)
          response = repository.search(builder)
          response.documents.map { |d| presenter_class.new(d) }
        end

        def repository
          config.repository
        end

        def config
          @config ||= ::CatalogController.new
        end
    end
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/services/hyrax/restriction_service.rb
hyrax-2.9.5 app/services/hyrax/restriction_service.rb
hyrax-2.9.4 app/services/hyrax/restriction_service.rb
hyrax-2.9.3 app/services/hyrax/restriction_service.rb
hyrax-2.9.2 app/services/hyrax/restriction_service.rb
hyrax-2.9.1 app/services/hyrax/restriction_service.rb
hyrax-2.9.0 app/services/hyrax/restriction_service.rb
hyrax-2.8.0 app/services/hyrax/restriction_service.rb
hyrax-2.7.2 app/services/hyrax/restriction_service.rb
hyrax-2.7.1 app/services/hyrax/restriction_service.rb
hyrax-2.7.0 app/services/hyrax/restriction_service.rb
hyrax-2.6.0 app/services/hyrax/restriction_service.rb
hyrax-3.0.0.pre.rc1 app/services/hyrax/restriction_service.rb
hyrax-3.0.0.pre.beta3 app/services/hyrax/restriction_service.rb
hyrax-2.5.1 app/services/hyrax/restriction_service.rb
hyrax-2.5.0 app/services/hyrax/restriction_service.rb
hyrax-3.0.0.pre.beta2 app/services/hyrax/restriction_service.rb
hyrax-2.4.1 app/services/hyrax/restriction_service.rb
hyrax-3.0.0.pre.beta1 app/services/hyrax/restriction_service.rb
hyrax-2.4.0 app/services/hyrax/restriction_service.rb