Class: HealthVault::WCData::Methods::Response::SearchVocabulary::Info
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Methods::Response::SearchVocabulary::Info
- Defined in:
- lib/wc_data/generated/methods/response/search_vocabulary/info.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_vocabulary_key(value) ⇒ Object
value is a HealthVault::WCData::Vocab::VocabularyKeyInfo.
-
#code_set_result ⇒ Object
returns: a HealthVault::WCData::Vocab::VocabularyCodeSet.
-
#code_set_result=(value) ⇒ Object
remarks: The code-item member is absent if no matches were found.
-
#initialize ⇒ Info
constructor
A new instance of Info.
-
#remove_vocabulary_key(value) ⇒ Object
value is a #HealthVault::WCData::Vocab::VocabularyKeyInfo.
-
#vocabulary_key ⇒ Object
remarks: This element is absent no matching vocabularies were found.
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 ⇒ Info
Returns a new instance of Info.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/wc_data/generated/methods/response/search_vocabulary/info.rb', line 54 def initialize super self.tag_name = 'info' @children['vocabulary-key'] = {:name => 'vocabulary-key', :class => HealthVault::WCData::Vocab::VocabularyKeyInfo, :value => Array.new, :min => 0, :max => 999999, :order => 1, :place => :element, :choice => 155507108 } @children['code-set-result'] = {:name => 'code-set-result', :class => HealthVault::WCData::Vocab::VocabularyCodeSet, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 155507108 } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#add_vocabulary_key(value) ⇒ Object
value is a HealthVault::WCData::Vocab::VocabularyKeyInfo
20 21 22 |
# File 'lib/wc_data/generated/methods/response/search_vocabulary/info.rb', line 20 def add_vocabulary_key(value) @children['vocabulary-key'][:value] << value end |
#code_set_result ⇒ Object
returns: a HealthVault::WCData::Vocab::VocabularyCodeSet
48 49 50 |
# File 'lib/wc_data/generated/methods/response/search_vocabulary/info.rb', line 48 def code_set_result return @children['code-set-result'][:value] end |
#code_set_result=(value) ⇒ Object
remarks: The code-item member is absent if no matches were found. value is a HealthVault::WCData::Vocab::VocabularyCodeSet
43 44 45 |
# File 'lib/wc_data/generated/methods/response/search_vocabulary/info.rb', line 43 def code_set_result=(value) @children['code-set-result'][:value] = value end |
#remove_vocabulary_key(value) ⇒ Object
value is a #HealthVault::WCData::Vocab::VocabularyKeyInfo
25 26 27 |
# File 'lib/wc_data/generated/methods/response/search_vocabulary/info.rb', line 25 def remove_vocabulary_key(value) @children['vocabulary-key'][:value].delete(value) end |
#vocabulary_key ⇒ Object
remarks: This element is absent no matching vocabularies were found. returns: a HealthVault::WCData::Vocab::VocabularyKeyInfo Array
33 34 35 |
# File 'lib/wc_data/generated/methods/response/search_vocabulary/info.rb', line 33 def vocabulary_key return @children['vocabulary-key'][:value] end |