class CannedSoap::Soap::SoapParamter

Attributes

name[RW]
namespace[RW]
nullable[RW]
type[RW]

Public Class Methods

parse(param_element) { |param| ... } click to toggle source

Gets the xml element of the paramter and parse it to a SoapParamter object Params:

param_element

Hash that represent the xml element of the paramter

# File lib/canned_soap/soap/soap_parameter.rb, line 8
def self.parse(param_element)
        param = SoapParamter.new
        param.name = param_element['name']
        param.type = param_element['type'].split(':').last
        yield param if block_given?

        param
end