Class: HealthVault::WCData::Types::LanguageCompetency
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Types::LanguageCompetency
- Defined in:
- lib/wc_data/generated/types/language_competency.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#data ⇒ Object
returns: a HealthVault::WCData::Types::Iso6391.
-
#data=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Types::Iso6391.
-
#initialize ⇒ LanguageCompetency
constructor
A new instance of LanguageCompetency.
-
#is_primary ⇒ Object
returns: a String.
-
#is_primary=(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 ⇒ LanguageCompetency
Returns a new instance of LanguageCompetency.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/wc_data/generated/types/language_competency.rb', line 43 def initialize super self.tag_name = 'languagecompetency' @children['data'] = {:name => 'data', :class => HealthVault::WCData::Types::Iso6391, :value => nil, :min => 1, :max => 1, :order => 0, :place => :extension, :choice => 0 } @children['data'][:value] = HealthVault::WCData::Types::Iso6391.new @children['is-primary'] = {:name => 'is-primary', :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
#data ⇒ Object
returns: a HealthVault::WCData::Types::Iso6391
24 25 26 |
# File 'lib/wc_data/generated/types/language_competency.rb', line 24 def data return @children['data'][:value] end |
#data=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Types::Iso6391
19 20 21 |
# File 'lib/wc_data/generated/types/language_competency.rb', line 19 def data=(value) @children['data'][:value] = value end |
#is_primary ⇒ Object
returns: a String
37 38 39 |
# File 'lib/wc_data/generated/types/language_competency.rb', line 37 def is_primary return @children['is-primary'][:value] end |
#is_primary=(value) ⇒ Object
value is a String
32 33 34 |
# File 'lib/wc_data/generated/types/language_competency.rb', line 32 def is_primary=(value) @children['is-primary'][:value] = value end |