Class: HealthVault::WCData::Thing::Types::Communicationtype
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Types::Communicationtype
- Defined in:
- lib/wc_data/generated/thing/types/communication_type.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#class ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#class=(value) ⇒ Object
preferred-vocabulary: communication-class value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#communication_medium ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#communication_medium=(value) ⇒ Object
preferred-vocabulary: communication-medium value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#initialize ⇒ Communicationtype
constructor
A new instance of Communicationtype.
-
#priority ⇒ Object
returns: a String.
-
#priority=(value) ⇒ Object
remarks: Preferred medium is lower value, such as phone-1, phone-2, etc.
-
#value ⇒ Object
returns: a String.
-
#value=(value) ⇒ Object
summary: Examples are phone number, fax number, etc.
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 ⇒ Communicationtype
Returns a new instance of Communicationtype.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 78 def initialize super self.tag_name = 'communication-type' @children['communication-medium'] = {:name => 'communication-medium', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['communication-medium'][:value] = HealthVault::WCData::Thing::Types::Codablevalue.new @children['priority'] = {:name => 'priority', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['class'] = {:name => 'class', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['value'] = {:name => 'value', :class => String, :value => nil, :min => 1, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['value'][:value] = String.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#class ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
57 58 59 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 57 def class return @children['class'][:value] end |
#class=(value) ⇒ Object
preferred-vocabulary: communication-class value is a HealthVault::WCData::Thing::Types::Codablevalue
52 53 54 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 52 def class=(value) @children['class'][:value] = value end |
#communication_medium ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
27 28 29 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 27 def communication_medium return @children['communication-medium'][:value] end |
#communication_medium=(value) ⇒ Object
preferred-vocabulary: communication-medium value is a HealthVault::WCData::Thing::Types::Codablevalue
22 23 24 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 22 def communication_medium=(value) @children['communication-medium'][:value] = value end |
#priority ⇒ Object
returns: a String
42 43 44 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 42 def priority return @children['priority'][:value] end |
#priority=(value) ⇒ Object
remarks: Preferred medium is lower value, such as phone-1, phone-2, etc. value is a String
37 38 39 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 37 def priority=(value) @children['priority'][:value] = value end |
#value ⇒ Object
returns: a String
72 73 74 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 72 def value return @children['value'][:value] end |
#value=(value) ⇒ Object
summary: Examples are phone number, fax number, etc. value is a String
67 68 69 |
# File 'lib/wc_data/generated/thing/types/communication_type.rb', line 67 def value=(value) @children['value'][:value] = value end |