Class: CurationConcerns::CollectionsService
- Inherits:
-
Object
- Object
- CurationConcerns::CollectionsService
- Defined in:
- app/services/curation_concerns/collections_service.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context) ⇒ CollectionsService
constructor
A new instance of CollectionsService.
- #search_results(access) ⇒ Object
Constructor Details
#initialize(context) ⇒ CollectionsService
Returns a new instance of CollectionsService.
9 10 11 |
# File 'app/services/curation_concerns/collections_service.rb', line 9 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'app/services/curation_concerns/collections_service.rb', line 3 def context @context end |
Instance Method Details
#search_results(access) ⇒ Object
14 15 16 17 18 |
# File 'app/services/curation_concerns/collections_service.rb', line 14 def search_results(access) builder = list_search_builder(access) response = context.repository.search(builder) response.documents end |