Sha256: 3744d030f09e431526fc1569a03e4b3da9d6ff58ec1fbf14bd365c7798b7be0c
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
require "nokogiri" require "transformator/transformation/step" require_relative "../result_transformation" class Skala::PrimoAdapter::Search::ResultTransformation:: ParseSearchBriefResponse < Transformator::Transformation::Step def call transformation.search_brief_response = Nokogiri::XML(source) .remove_namespaces! .at_xpath("/Envelope/Body/searchBriefResponse/searchBriefReturn") .try(:text) .try do |_embedded_search_brief_response| Nokogiri::XML(_embedded_search_brief_response) { |config| config.noblanks } .remove_namespaces! .at_xpath("//SEGMENTS/JAGROOT/RESULT") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skala-1.1.0 | lib/skala/primo_adapter/search/result_transformation/parse_search_brief_response.rb |