require "ox" require "transformator/transformation/step" require_relative "../request_transformation" class Skala::PrimoAdapter::Search::RequestTransformation:: SetupTarget < Transformator::Transformation::Step def call # create empty ox document self.target = Ox::Document.new(version: "1.0", encoding: "UTF-8") # populate target with soap request skeleton self.target << Ox.parse( <<-xml xml ) end end