Class: HealthVault::WCData::Thing::DataXml
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::DataXml
- Defined in:
- lib/wc_data/generated/thing/data_xml.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#anything ⇒ Object
returns: a HealthVault::WCData::ComplexType.
-
#anything=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::ComplexType.
-
#common ⇒ Object
returns: a HealthVault::WCData::Thing::Common.
-
#common=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Common.
-
#initialize ⇒ DataXml
constructor
A new instance of DataXml.
-
#transform ⇒ Object
returns: a String.
-
#transform=(value) ⇒ Object
value is a String.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ DataXml
Returns a new instance of DataXml.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/wc_data/generated/thing/data_xml.rb', line 56 def initialize super self.tag_name = 'dataxml' @children['anything'] = {:name => 'anything', :class => HealthVault::WCData::ComplexType, :value => nil, :min => 1, :max => 1, :order => 1, :place => :extension, :choice => 0 } @children['common'] = {:name => 'common', :class => HealthVault::WCData::Thing::Common, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['transform'] = {:name => 'transform', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#anything ⇒ Object
returns: a HealthVault::WCData::ComplexType
24 25 26 |
# File 'lib/wc_data/generated/thing/data_xml.rb', line 24 def anything return @children['anything'][:value] end |
#anything=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::ComplexType
19 20 21 |
# File 'lib/wc_data/generated/thing/data_xml.rb', line 19 def anything=(value) @children['anything'][:value] = value end |
#common ⇒ Object
returns: a HealthVault::WCData::Thing::Common
37 38 39 |
# File 'lib/wc_data/generated/thing/data_xml.rb', line 37 def common return @children['common'][:value] end |
#common=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Common
32 33 34 |
# File 'lib/wc_data/generated/thing/data_xml.rb', line 32 def common=(value) @children['common'][:value] = value end |
#transform ⇒ Object
returns: a String
50 51 52 |
# File 'lib/wc_data/generated/thing/data_xml.rb', line 50 def transform return @children['transform'][:value] end |
#transform=(value) ⇒ Object
value is a String
45 46 47 |
# File 'lib/wc_data/generated/thing/data_xml.rb', line 45 def transform=(value) @children['transform'][:value] = value end |