Class: WSDL::Part
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
optional.
-
#name ⇒ Object
readonly
required.
-
#type ⇒ Object
readonly
optional.
Attributes inherited from Info
Instance Method Summary collapse
-
#initialize ⇒ Part
constructor
A new instance of Part.
- #parse_attr(attr, value) ⇒ Object
- #parse_element(element) ⇒ Object
Methods inherited from Info
Constructor Details
#initialize ⇒ Part
Returns a new instance of Part.
20 21 22 23 24 25 |
# File 'lib/action_web_service/wsdl/part.rb', line 20 def initialize super @name = nil @element = nil @type = nil end |
Instance Attribute Details
#element ⇒ Object (readonly)
optional
17 18 19 |
# File 'lib/action_web_service/wsdl/part.rb', line 17 def element @element end |
#name ⇒ Object (readonly)
required
16 17 18 |
# File 'lib/action_web_service/wsdl/part.rb', line 16 def name @name end |
#type ⇒ Object (readonly)
optional
18 19 20 |
# File 'lib/action_web_service/wsdl/part.rb', line 18 def type @type end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/action_web_service/wsdl/part.rb', line 37 def parse_attr(attr, value) case attr when NameAttrName @name = value.source when ElementAttrName @element = value when TypeAttrName @type = value else nil end end |
#parse_element(element) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/action_web_service/wsdl/part.rb', line 27 def parse_element(element) case element when DocumentationName o = Documentation.new o else nil end end |