class Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchResultTransformation::ParseInnerSearchBriefReturn
Public Instance Methods
call()
click to toggle source
# File lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/parse_inner_search_brief_return.rb, line 7 def call remove_namespaces!(source) string_encoded_search_brief_return = Ox.parse(source).locate("Envelope/Body/searchBriefResponse/searchBriefReturn").first transformation.search_brief_return = Ox.parse remove_namespaces!(string_encoded_search_brief_return.text) end
Private Instance Methods
remove_namespaces!(xml)
click to toggle source
# File lib/celsius/primo/soap_api/searcher/search_brief/search_result_transformation/parse_inner_search_brief_return.rb, line 20 def remove_namespaces!(xml) xml.gsub!(/<(\/?)\w+:(\w+)/, "<\\1\\2") end