class Skala::PrimoAdapter::Search::RequestTransformation::SetLocations
Public Instance Methods
call()
click to toggle source
# File lib/skala/primo_adapter/search/request_transformation/set_locations.rb, line 8 def call transformation.locations.each do |_location| transformation.inner_search_request.locate("PrimoSearchRequest/Locations").first.tap do |_node| _node << Ox.parse( <<-xml <uic:Location type="#{_location[:type]}" value="#{_location[:value]}"/> xml ) end end end