Sha256: 58736e3adac21761725c32aea07984d2bfd326d7c2f76dfa50916d051d1e31d1

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

require "transformator/transformation/step"
require_relative "../result_transformation"

class Skala::PrimoAdapter::Search::ResultTransformation::
  SetTotalHits < Transformator::Transformation::Step

  def call
    target.total_hits =
    transformation.search_brief_response.at_xpath("//DOCSET").try do |_docset|
      _docset.attr("TOTALHITS").to_i
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skala-1.1.0 lib/skala/primo_adapter/search/result_transformation/set_total_hits.rb