Class: Soap::SoapParamter
- Inherits:
-
Object
- Object
- Soap::SoapParamter
- Defined in:
- lib/soap/soap_parameter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#nullable ⇒ Object
Returns the value of attribute nullable.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.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.
- Gets the xml element of the paramter and parse it to a
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/soap/soap_parameter.rb', line 3 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
3 4 5 |
# File 'lib/soap/soap_parameter.rb', line 3 def namespace @namespace end |
#nullable ⇒ Object
Returns the value of attribute nullable.
3 4 5 |
# File 'lib/soap/soap_parameter.rb', line 3 def nullable @nullable end |
#type ⇒ Object
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
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 |