Class: Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchResultTransformation::SetTotalHits
- Inherits:
-
Transformation::Step
- Object
- Transformation::Step
- Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchResultTransformation::SetTotalHits
- Defined in:
- lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/set_total_hits.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 10 11 |
# File 'lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/set_total_hits.rb', line 7 def call if docset = (search_brief_return.locate("JAGROOT/RESULT/DOCSET") || []).first target["hits"]["total"] = docset[:TOTALHITS].to_i end end |