Class: WSDL::XMLSchema::Any
Instance Attribute Summary collapse
-
#maxoccurs ⇒ Object
Returns the value of attribute maxoccurs.
-
#minoccurs ⇒ Object
Returns the value of attribute minoccurs.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#process_contents ⇒ Object
Returns the value of attribute process_contents.
Attributes inherited from Info
Instance Method Summary collapse
-
#initialize ⇒ Any
constructor
A new instance of Any.
- #parse_attr(attr, value) ⇒ Object
- #parse_element(element) ⇒ Object
- #targetnamespace ⇒ Object
Methods inherited from Info
Constructor Details
#initialize ⇒ Any
Returns a new instance of Any.
22 23 24 25 26 27 28 |
# File 'lib/wsdl/xmlSchema/any.rb', line 22 def initialize super() @maxoccurs = '1' @minoccurs = '1' @namespace = '##any' @process_contents = 'strict' end |
Instance Attribute Details
#maxoccurs ⇒ Object
Returns the value of attribute maxoccurs
17 18 19 |
# File 'lib/wsdl/xmlSchema/any.rb', line 17 def maxoccurs @maxoccurs end |
#minoccurs ⇒ Object
Returns the value of attribute minoccurs
18 19 20 |
# File 'lib/wsdl/xmlSchema/any.rb', line 18 def minoccurs @minoccurs end |
#namespace ⇒ Object
Returns the value of attribute namespace
19 20 21 |
# File 'lib/wsdl/xmlSchema/any.rb', line 19 def namespace @namespace end |
#process_contents ⇒ Object
Returns the value of attribute process_contents
20 21 22 |
# File 'lib/wsdl/xmlSchema/any.rb', line 20 def process_contents @process_contents end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/wsdl/xmlSchema/any.rb', line 38 def parse_attr(attr, value) case attr when MaxOccursAttrName @maxoccurs = value.source when MinOccursAttrName @minoccurs = value.source when NamespaceAttrName @namespace = value.source when ProcessContentsAttrName @process_contents = value.source else nil end end |
#parse_element(element) ⇒ Object
34 35 36 |
# File 'lib/wsdl/xmlSchema/any.rb', line 34 def parse_element(element) nil end |
#targetnamespace ⇒ Object
30 31 32 |
# File 'lib/wsdl/xmlSchema/any.rb', line 30 def targetnamespace parent.targetnamespace end |