Class: Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchResultTransformation::SelectOnlyRequestedFacets
- Inherits:
-
Transformation::Step
- Object
- Transformation::Step
- Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchResultTransformation::SelectOnlyRequestedFacets
- Defined in:
- lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/select_only_requested_facets.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/select_only_requested_facets.rb', line 7 def call if requested_facets_names = Celsius::Hash.deep_find_key(search_request, [:facets, :field]) target["facets"].select! do |target_facet_name, _| requested_facets_names.include?(target_facet_name) end end end |