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.
21 22 23 24 25 26 |
# File 'lib/wsdl/part.rb', line 21 def initialize super @name = nil @element = nil @type = nil end |
Instance Attribute Details
#element ⇒ Object (readonly)
optional
18 19 20 |
# File 'lib/wsdl/part.rb', line 18 def element @element end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/wsdl/part.rb', line 38 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
28 29 30 31 32 33 34 35 36 |
# File 'lib/wsdl/part.rb', line 28 def parse_element(element) case element when DocumentationName o = Documentation.new o else nil end end |