Class: Skala::PrimoAdapter::Search::RequestTransformation::SetLanguages

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

Instance Method Summary collapse

Instance Method Details

#callObject



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