Class: HealthVault::WCData::Thing::Equipment::Device
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Equipment::Device
- Defined in:
- lib/wc_data/generated/thing/equipment/device.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#anatomic_site ⇒ Object
returns: a String.
-
#anatomic_site=(value) ⇒ Object
value is a String.
-
#description ⇒ Object
returns: a String.
-
#description=(value) ⇒ Object
value is a String.
-
#device_name ⇒ Object
returns: a String.
-
#device_name=(value) ⇒ Object
value is a String.
-
#initialize ⇒ Device
constructor
A new instance of Device.
-
#model ⇒ Object
returns: a String.
-
#model=(value) ⇒ Object
value is a String.
-
#serial_number ⇒ Object
returns: a String.
-
#serial_number=(value) ⇒ Object
value is a String.
-
#vendor ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Person.
-
#vendor=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Person.
-
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime.
-
#when=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Datetime.
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 ⇒ Device
Returns a new instance of Device.
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 116 def initialize super self.tag_name = 'device' @children['when'] = {:name => 'when', :class => HealthVault::WCData::Dates::Datetime, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['when'][:value] = HealthVault::WCData::Dates::Datetime.new @children['device-name'] = {:name => 'device-name', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['vendor'] = {:name => 'vendor', :class => HealthVault::WCData::Thing::Types::Person, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['model'] = {:name => 'model', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['serial-number'] = {:name => 'serial-number', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['anatomic-site'] = {:name => 'anatomic-site', :class => String, :value => nil, :min => 0, :max => 1, :order => 6, :place => :element, :choice => 0 } @children['description'] = {:name => 'description', :class => String, :value => nil, :min => 0, :max => 1, :order => 7, :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
#anatomic_site ⇒ Object
returns: a String
96 97 98 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 96 def anatomic_site return @children['anatomic-site'][:value] end |
#anatomic_site=(value) ⇒ Object
value is a String
91 92 93 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 91 def anatomic_site=(value) @children['anatomic-site'][:value] = value end |
#description ⇒ Object
returns: a String
110 111 112 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 110 def description return @children['description'][:value] end |
#description=(value) ⇒ Object
value is a String
105 106 107 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 105 def description=(value) @children['description'][:value] = value end |
#device_name ⇒ Object
returns: a String
40 41 42 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 40 def device_name return @children['device-name'][:value] end |
#device_name=(value) ⇒ Object
value is a String
35 36 37 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 35 def device_name=(value) @children['device-name'][:value] = value end |
#model ⇒ Object
returns: a String
68 69 70 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 68 def model return @children['model'][:value] end |
#model=(value) ⇒ Object
value is a String
63 64 65 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 63 def model=(value) @children['model'][:value] = value end |
#serial_number ⇒ Object
returns: a String
82 83 84 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 82 def serial_number return @children['serial-number'][:value] end |
#serial_number=(value) ⇒ Object
value is a String
77 78 79 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 77 def serial_number=(value) @children['serial-number'][:value] = value end |
#vendor ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Person
54 55 56 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 54 def vendor return @children['vendor'][:value] end |
#vendor=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Person
49 50 51 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 49 def vendor=(value) @children['vendor'][:value] = value end |
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime
26 27 28 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 26 def when return @children['when'][:value] end |
#when=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Datetime
21 22 23 |
# File 'lib/wc_data/generated/thing/equipment/device.rb', line 21 def when=(value) @children['when'][:value] = value end |