Class: Soap::SoapParamter

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/soap_parameter.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/soap/soap_parameter.rb', line 3

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



3
4
5
# File 'lib/soap/soap_parameter.rb', line 3

def namespace
  @namespace
end

#nullableObject

Returns the value of attribute nullable.



3
4
5
# File 'lib/soap/soap_parameter.rb', line 3

def nullable
  @nullable
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/soap/soap_parameter.rb', line 3

def type
  @type
end

Class Method Details

.parse(param_element) {|param| ... } ⇒ Object

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

Yields:

  • (param)


8
9
10
11
12
13
14
15
# File 'lib/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