client/lib/deltacloud/client/helpers/xml_helper.rb
# Extract XML string from the various objects
#
Extract XML string from the various objects
Extract XML string from the various objects
def extract_xml_body(obj)
        case obj
        when Faraday::Response then obj.body
        when Nokogiri::XML::Element then obj.to_s
        when Nokogiri::XML::Document then obj.to_s
        else obj
        end
      end
def extract_xml_body ( obj ) case obj when Faraday :: Response then obj . body when Nokogiri :: XML :: Element then obj . to_s when Nokogiri :: XML :: Document then obj . to_s else obj end end
Extract XML string from the various objects
Extract XML string from the various objects
obj
<not_specific>