Class: WsdlMapper::Dom::SimpleType
- Defined in:
- lib/wsdl_mapper/dom/simple_type.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#base_type_name ⇒ Object
Returns the value of attribute base_type_name.
-
#containing_element ⇒ Object
Returns the value of attribute containing_element.
-
#containing_property ⇒ Object
Returns the value of attribute containing_property.
-
#enumeration_values ⇒ Object
readonly
Returns the value of attribute enumeration_values.
-
#fraction_digits ⇒ Object
Returns the value of attribute fraction_digits.
-
#max ⇒ Object
Returns the value of attribute max.
-
#max_inclusive ⇒ Object
Returns the value of attribute max_inclusive.
-
#min ⇒ Object
Returns the value of attribute min.
-
#min_inclusive ⇒ Object
Returns the value of attribute min_inclusive.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#total_digits ⇒ Object
Returns the value of attribute total_digits.
Attributes inherited from TypeBase
Instance Method Summary collapse
- #enumeration? ⇒ Boolean
-
#initialize(name) ⇒ SimpleType
constructor
A new instance of SimpleType.
- #pattern? ⇒ Boolean
- #root ⇒ Object
Methods inherited from TypeBase
Constructor Details
#initialize(name) ⇒ SimpleType
Returns a new instance of SimpleType.
10 11 12 13 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 10 def initialize(name) super @enumeration_values = [] end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def base @base end |
#base_type_name ⇒ Object
Returns the value of attribute base_type_name.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def base_type_name @base_type_name end |
#containing_element ⇒ Object
Returns the value of attribute containing_element.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def containing_element @containing_element end |
#containing_property ⇒ Object
Returns the value of attribute containing_property.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def containing_property @containing_property end |
#enumeration_values ⇒ Object (readonly)
Returns the value of attribute enumeration_values.
8 9 10 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 8 def enumeration_values @enumeration_values end |
#fraction_digits ⇒ Object
Returns the value of attribute fraction_digits.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def fraction_digits @fraction_digits end |
#max ⇒ Object
Returns the value of attribute max.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def max @max end |
#max_inclusive ⇒ Object
Returns the value of attribute max_inclusive.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def max_inclusive @max_inclusive end |
#min ⇒ Object
Returns the value of attribute min.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def min @min end |
#min_inclusive ⇒ Object
Returns the value of attribute min_inclusive.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def min_inclusive @min_inclusive end |
#pattern ⇒ Object
Returns the value of attribute pattern.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def pattern @pattern end |
#total_digits ⇒ Object
Returns the value of attribute total_digits.
7 8 9 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7 def total_digits @total_digits end |
Instance Method Details
#enumeration? ⇒ Boolean
15 16 17 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 15 def enumeration? @enumeration_values.any? end |
#pattern? ⇒ Boolean
23 24 25 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 23 def pattern? !!@pattern end |
#root ⇒ Object
19 20 21 |
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 19 def root @base ? @base.root : self end |