Sha256: 18f0635f1ea6bd8be982b3f8ab33cde7a67019fa62fb0fb1b6fb1c857023b755
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require "ox" require "transformator/transformation/step" require_relative "../request_transformation" class Skala::PrimoAdapter::Search::RequestTransformation:: SetLanguages < Transformator::Transformation::Step 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skala-1.1.0 | lib/skala/primo_adapter/search/request_transformation/set_languages.rb |