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 ⇒ ActionController::Parameters readonly
- #scope ⇒ #repository readonly
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.
- #repository ⇒ Object
Constructor Details
#initialize(scope:, collection:, params:) ⇒ AdminSetMemberService
Returns a new instance of AdminSetMemberService.
24 25 26 27 28 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 24 def initialize(scope:, collection:, params:) @scope = scope @collection = collection @params = params end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
13 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 13 attr_reader :scope, :params, :collection |
#params ⇒ ActionController::Parameters (readonly)
13 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 13 attr_reader :scope, :params, :collection |
#scope ⇒ #repository (readonly)
13 14 15 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 13 def scope @scope end |
Instance Method Details
#available_member_works ⇒ Blacklight::Solr::Response
All members of the given admin_set
35 36 37 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 35 def available_member_works query_solr(query_builder: members_search_builder, query_params: params) end |
#repository ⇒ Object
Note:
delegated to :scope
18 |
# File 'app/services/hyrax/admin_set_member_service.rb', line 18 delegate :repository, to: :scope |