Class: Skala::PrimoAdapter::Search::ResultTransformation::AddHits

Inherits:
Transformator::Transformation::Step
  • Object
show all
Defined in:
lib/skala/primo_adapter/search/result_transformation/add_hits.rb

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
11
12
# File 'lib/skala/primo_adapter/search/result_transformation/add_hits.rb', line 8

def call
  target.hits = transformation.search_brief_response.xpath("//DOC").map do |_doc|
    self.class.parent::DocTransformation.new.call(_doc)
  end
end