Class: Skala::PrimoAdapter::Search::RequestTransformation::SetLanguages
- Inherits:
-
Transformator::Transformation::Step
- Object
- Transformator::Transformation::Step
- Skala::PrimoAdapter::Search::RequestTransformation::SetLanguages
- Defined in:
- lib/skala/primo_adapter/search/request_transformation/set_languages.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/skala/primo_adapter/search/request_transformation/set_languages.rb', line 8 def call transformation.languages.each do |_language| transformation.inner_search_request.locate("PrimoSearchRequest/Languages").first.tap do |_node| _node << Ox.parse("<Language>#{_language}</Language>") end end end |