Class: HealthVault::WCData::Thing::Equipment::Device

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/thing/equipment/device.rb

Instance Attribute Summary

Attributes inherited from ComplexType

#tag_name

Instance Method Summary collapse

Methods inherited from ComplexType

#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?

Constructor Details

#initializeDevice

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_siteObject

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

#descriptionObject

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_nameObject

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

#modelObject

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_numberObject

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

#vendorObject

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

#whenObject

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