Class: Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::SetMetadata
- Inherits:
-
Transformator::Transformation::Step
- Object
- Transformator::Transformation::Step
- Skala::PrimoAdapter::Search::ResultTransformation::DocTransformation::SetMetadata
- Defined in:
- lib/skala/primo_adapter/search/result_transformation/doc_transformation/set_metadata.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |