lib/sepa/application_request.rb
# Adds node to the root of the application request and content to it if specified
Adds node to the root of the application request and content to it if specified
Adds node to the root of the application request and content to it if specified
def add_node_to_root(node, content: nil)
        unless node.is_a? Nokogiri::XML::Node
          node = Nokogiri::XML::Node.new node, @application_request
        end
        @application_request.root.add_child node
        set_node(node.name, content) if content
      end
def add_node_to_root ( node , content : nil ) unless node . is_a? Nokogiri :: XML :: Node node = Nokogiri :: XML :: Node . new node , @application_request end @application_request . root . add_child node set_node ( node . name , content ) if content end
Adds node to the root of the application request and content to it if specified
Adds node to the root of the application request and content to it if specified
node
content