Class: HealthVault::WCData::Thing::Cholesterolprofile::Cholesterolprofile
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Cholesterolprofile::Cholesterolprofile
- Defined in:
- lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#hdl ⇒ Object
returns: a String.
-
#hdl=(value) ⇒ Object
remarks: HDL stands for high density lipoprotein, a form of “good” cholesterol.
-
#initialize ⇒ Cholesterolprofile
constructor
A new instance of Cholesterolprofile.
-
#ldl ⇒ Object
returns: a String.
-
#ldl=(value) ⇒ Object
remarks: The LDL test measures how much low-density lipoprotein (LDL) you have in your blood.
-
#total_cholesterol ⇒ Object
returns: a String.
-
#total_cholesterol=(value) ⇒ Object
remarks: A total cholesterol test is a rough measure of all the cholesterol and triglycerides in your blood.
-
#triglyceride ⇒ Object
returns: a String.
-
#triglyceride=(value) ⇒ Object
remarks: Triglycerides are a type of fat.
-
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Date.
-
#when=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Date.
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 ⇒ Cholesterolprofile
Returns a new instance of Cholesterolprofile.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 92 def initialize super self.tag_name = 'cholesterol-profile' @children['when'] = {:name => 'when', :class => HealthVault::WCData::Dates::Date, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['when'][:value] = HealthVault::WCData::Dates::Date.new @children['ldl'] = {:name => 'ldl', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['hdl'] = {:name => 'hdl', :class => String, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['total-cholesterol'] = {:name => 'total-cholesterol', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['triglyceride'] = {:name => 'triglyceride', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :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
#hdl ⇒ Object
returns: a String
56 57 58 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 56 def hdl return @children['hdl'][:value] end |
#hdl=(value) ⇒ Object
remarks: HDL stands for high density lipoprotein, a form of “good” cholesterol. Lipoproteins are proteins in the blood that move cholesterol, triglycerides, and other lipids to various tissues. HDL is measured in mg/dL. value is a String
51 52 53 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 51 def hdl=(value) @children['hdl'][:value] = value end |
#ldl ⇒ Object
returns: a String
41 42 43 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 41 def ldl return @children['ldl'][:value] end |
#ldl=(value) ⇒ Object
remarks: The LDL test measures how much low-density lipoprotein (LDL) you have in your blood. LDL is a type of cholesterol. Too much LDL in the blood can clog arteries. LDL is measured in mg/dL. value is a String
36 37 38 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 36 def ldl=(value) @children['ldl'][:value] = value end |
#total_cholesterol ⇒ Object
returns: a String
71 72 73 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 71 def total_cholesterol return @children['total-cholesterol'][:value] end |
#total_cholesterol=(value) ⇒ Object
remarks: A total cholesterol test is a rough measure of all the cholesterol and triglycerides in your blood. Total cholesterol is measured in mg/dL. value is a String
66 67 68 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 66 def total_cholesterol=(value) @children['total-cholesterol'][:value] = value end |
#triglyceride ⇒ Object
returns: a String
86 87 88 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 86 def triglyceride return @children['triglyceride'][:value] end |
#triglyceride=(value) ⇒ Object
remarks: Triglycerides are a type of fat. Your body makes some triglycerides. Triglycerides also come from the food you eat. Triglycerides are measured in mg/dL. value is a String
81 82 83 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 81 def triglyceride=(value) @children['triglyceride'][:value] = value end |
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Date
26 27 28 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 26 def when return @children['when'][:value] end |
#when=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Date
21 22 23 |
# File 'lib/wc_data/generated/thing/cholesterol_profile/cholesterol_profile.rb', line 21 def when=(value) @children['when'][:value] = value end |