Sha256: dd15eaaeaf1c9b1fda8513cad9dcc72e21bfb3584cfaf193c2982fe1c95ce34d

Contents?: true

Size: 565 Bytes

Versions: 66

Compression:

Stored size: 565 Bytes

Contents

module CurationConcerns
  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

66 entries across 66 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.7 app/services/curation_concerns/restriction_service.rb
curation_concerns-2.0.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-2.0.0.rc2 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.6 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.5 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.4 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.3 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.2 app/services/curation_concerns/restriction_service.rb
curation_concerns-2.0.0.rc1 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.1 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.7.0.beta1 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.6.3 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.6.2 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.6.1 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.6.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.5.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.4.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-1.3.3 app/services/curation_concerns/restriction_service.rb