Class: WSDL::Message
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
required.
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
Attributes inherited from Info
Instance Method Summary collapse
-
#initialize ⇒ Message
constructor
A new instance of Message.
- #parse_attr(attr, value) ⇒ Object
- #parse_element(element) ⇒ Object
- #targetnamespace ⇒ Object
Methods inherited from Info
Constructor Details
#initialize ⇒ Message
Returns a new instance of Message.
19 20 21 22 23 |
# File 'lib/wsdl/message.rb', line 19 def initialize super @name = nil @parts = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
required
16 17 18 |
# File 'lib/wsdl/message.rb', line 16 def name @name end |
#parts ⇒ Object (readonly)
Returns the value of attribute parts.
17 18 19 |
# File 'lib/wsdl/message.rb', line 17 def parts @parts end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/wsdl/message.rb', line 43 def parse_attr(attr, value) case attr when NameAttrName @name = XSD::QName.new(parent.targetnamespace, value.source) else nil end end |
#parse_element(element) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/wsdl/message.rb', line 29 def parse_element(element) case element when PartName o = Part.new @parts << o o when DocumentationName o = Documentation.new o else nil end end |
#targetnamespace ⇒ Object
25 26 27 |
# File 'lib/wsdl/message.rb', line 25 def targetnamespace parent.targetnamespace end |