Class: Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::SetMetadata

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  target.id = source.attr("ID")
  target.index = source.attr("SEARCH_ENGINE")
  target.score = source.attr("RANK")
  target.type = "record"
end