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-0.14.0.pre3 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.14.0.pre2 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.14.0.pre1 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.13.1 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.13.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre9 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre8 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre7 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre6 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre5 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre4 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre3 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre2 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.12.0.pre1 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.11.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.11.0.rc1 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.10.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.9.0 app/services/curation_concerns/restriction_service.rb
curation_concerns-0.8.0 app/services/curation_concerns/restriction_service.rb