Class: HealthVault::WCData::Thing::Spirometer::Volumevalue

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/thing/spirometer/volume_value.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

#initializeVolumevalue

Returns a new instance of Volumevalue.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/wc_data/generated/thing/spirometer/volume_value.rb', line 47

def initialize
  super
  self.tag_name = 'volume-value'

  
  @children['liters'] = {:name => 'liters', :class => HealthVault::WCData::Thing::Types::PositiveDouble, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 }
    
  @children['liters'][:value] = HealthVault::WCData::Thing::Types::PositiveDouble.new
    
  

  
  @children['display'] = {:name => 'display', :class => HealthVault::WCData::Thing::Types::Displayvalue, :value => nil, :min => 0, :max => 1, :order => 2, :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

#displayObject

returns: a HealthVault::WCData::Thing::Types::Displayvalue



41
42
43
# File 'lib/wc_data/generated/thing/spirometer/volume_value.rb', line 41

def display
  return @children['display'][:value]
end

#display=(value) ⇒ Object

remarks: The display value contains the volume measurement value stored in the user’s preference of units. value is a HealthVault::WCData::Thing::Types::Displayvalue



36
37
38
# File 'lib/wc_data/generated/thing/spirometer/volume_value.rb', line 36

def display=(value)
  @children['display'][:value] = value
end

#litersObject

returns: a HealthVault::WCData::Thing::Types::PositiveDouble



26
27
28
# File 'lib/wc_data/generated/thing/spirometer/volume_value.rb', line 26

def liters
  return @children['liters'][:value]
end

#liters=(value) ⇒ Object

value is a HealthVault::WCData::Thing::Types::PositiveDouble



21
22
23
# File 'lib/wc_data/generated/thing/spirometer/volume_value.rb', line 21

def liters=(value)
  @children['liters'][:value] = value
end