Module: XML::XMLRPC::Parser::Call
- Defined in:
- lib/xml/libxml/xmlrpc/parser.rb
Overview
Parse a methodCall.
Class Method Summary collapse
Class Method Details
.parse(node) ⇒ Object
141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/xml/libxml/xmlrpc/parser.rb', line 141 def self.parse(node) method = node.find('/methodCall/methodName') methodname = "unknown" if method and method[0] content = method[0].content methodname = content end values = node.find('/methodCall/params/param/value') parsed_params = Parser::ValueParser.parse(values) return methodname, parsed_params end |