Class: HealthVault::WCData::Vocab::VocabularyKey
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Vocab::VocabularyKey
- Defined in:
- lib/wc_data/generated/vocab/vocabulary_key.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#code_value ⇒ Object
returns: a String.
-
#code_value=(value) ⇒ Object
value is a String.
-
#family ⇒ Object
returns: a HealthVault::WCData::Types::Stringnz.
-
#family=(value) ⇒ Object
remarks: Vocabularies can be defined by HealthVault or by a number of standards organizations such as the ISO.
-
#initialize ⇒ VocabularyKey
constructor
A new instance of VocabularyKey.
-
#name ⇒ Object
returns: a HealthVault::WCData::Types::Stringnz.
-
#name=(value) ⇒ Object
value is a HealthVault::WCData::Types::Stringnz.
-
#version ⇒ Object
returns: a HealthVault::WCData::Types::Stringnz.
-
#version=(value) ⇒ Object
remarks: A string used to identify a particular version of a vocabulary.
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 ⇒ VocabularyKey
Returns a new instance of VocabularyKey.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 75 def initialize super self.tag_name = 'vocabularykey' @children['name'] = {:name => 'name', :class => HealthVault::WCData::Types::Stringnz, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['name'][:value] = HealthVault::WCData::Types::Stringnz.new @children['family'] = {:name => 'family', :class => HealthVault::WCData::Types::Stringnz, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['version'] = {:name => 'version', :class => HealthVault::WCData::Types::Stringnz, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['code-value'] = {:name => 'code-value', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :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
#code_value ⇒ Object
returns: a String
69 70 71 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 69 def code_value return @children['code-value'][:value] end |
#code_value=(value) ⇒ Object
value is a String
64 65 66 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 64 def code_value=(value) @children['code-value'][:value] = value end |
#family ⇒ Object
returns: a HealthVault::WCData::Types::Stringnz
40 41 42 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 40 def family return @children['family'][:value] end |
#family=(value) ⇒ Object
remarks: Vocabularies can be defined by HealthVault or by a number of standards organizations such as the ISO. The family parameter specfies this source. value is a HealthVault::WCData::Types::Stringnz
35 36 37 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 35 def family=(value) @children['family'][:value] = value end |
#name ⇒ Object
returns: a HealthVault::WCData::Types::Stringnz
25 26 27 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 25 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
value is a HealthVault::WCData::Types::Stringnz
20 21 22 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 20 def name=(value) @children['name'][:value] = value end |
#version ⇒ Object
returns: a HealthVault::WCData::Types::Stringnz
55 56 57 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 55 def version return @children['version'][:value] end |
#version=(value) ⇒ Object
remarks: A string used to identify a particular version of a vocabulary. value is a HealthVault::WCData::Types::Stringnz
50 51 52 |
# File 'lib/wc_data/generated/vocab/vocabulary_key.rb', line 50 def version=(value) @children['version'][:value] = value end |