Class: Hyrax::AdminSetMemberService
- Inherits:
-
Object
- Object
- Hyrax::AdminSetMemberService
- Defined in:
- app/services/hyrax/admin_set_member_service.rb
Overview
Responsible for retrieving admin set’s members
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#available_member_works ⇒ Blacklight::Solr::Response
All members of the given admin_set.
-
#initialize(scope:, collection:, params:) ⇒ AdminSetMemberService
constructor
A new instance of AdminSetMemberService.
Constructor Details
#initialize(scope:, collection:, params:) ⇒ AdminSetMemberService
Returns a new instance of AdminSetMemberService.
10 11 12 13 14 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 10 def initialize(scope:, collection:, params:) @scope = scope @collection = collection @params = params end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
4 5 6 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 4 def collection @collection end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 4 def params @params end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
4 5 6 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 4 def scope @scope end |
Instance Method Details
#available_member_works ⇒ Blacklight::Solr::Response
All members of the given admin_set
20 21 22 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 20 def available_member_works query_solr(query_builder: members_search_builder, query_params: params) end |