class Skala::PrimoAdapter::Search::ResultTransformation::SetTotalHits

Public Instance Methods

call() click to toggle source
# File lib/skala/primo_adapter/search/result_transformation/set_total_hits.rb, line 7
def call
  target.total_hits =
  transformation.search_brief_response.at_xpath("//DOCSET").try do |_docset|
    _docset.attr("TOTALHITS").to_i
  end
end