Class: Datasets::Hepatitis::Record
- Inherits:
-
Struct
- Object
- Struct
- Datasets::Hepatitis::Record
- Defined in:
- lib/datasets/hepatitis.rb
Instance Attribute Summary collapse
-
#age ⇒ Object
Returns the value of attribute age.
-
#albumin ⇒ Object
Returns the value of attribute albumin.
-
#alkaline_phosphate ⇒ Object
Returns the value of attribute alkaline_phosphate.
-
#anorexia ⇒ Object
Returns the value of attribute anorexia.
-
#antivirals ⇒ Object
Returns the value of attribute antivirals.
-
#ascites ⇒ Object
Returns the value of attribute ascites.
-
#bilirubin ⇒ Object
Returns the value of attribute bilirubin.
-
#fatigue ⇒ Object
Returns the value of attribute fatigue.
-
#histology ⇒ Object
Returns the value of attribute histology.
-
#label ⇒ Object
Returns the value of attribute label.
-
#liver_big ⇒ Object
Returns the value of attribute liver_big.
-
#liver_firm ⇒ Object
Returns the value of attribute liver_firm.
-
#malaise ⇒ Object
Returns the value of attribute malaise.
-
#protime ⇒ Object
Returns the value of attribute protime.
-
#sex ⇒ Object
Returns the value of attribute sex.
-
#sgot ⇒ Object
Returns the value of attribute sgot.
-
#spiders ⇒ Object
Returns the value of attribute spiders.
-
#spleen_palpable ⇒ Object
Returns the value of attribute spleen_palpable.
-
#steroid ⇒ Object
Returns the value of attribute steroid.
-
#varices ⇒ Object
Returns the value of attribute varices.
Instance Method Summary collapse
-
#initialize(*values) ⇒ Record
constructor
A new instance of Record.
Constructor Details
#initialize(*values) ⇒ Record
Returns a new instance of Record.
27 28 29 30 31 32 |
# File 'lib/datasets/hepatitis.rb', line 27 def initialize(*values) super() members.zip(values) do |member, value| __send__("#{member}=", value) end end |
Instance Attribute Details
#age ⇒ Object
Returns the value of attribute age
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def age @age end |
#albumin ⇒ Object
Returns the value of attribute albumin
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def albumin @albumin end |
#alkaline_phosphate ⇒ Object
Returns the value of attribute alkaline_phosphate
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def alkaline_phosphate @alkaline_phosphate end |
#anorexia ⇒ Object
Returns the value of attribute anorexia
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def anorexia @anorexia end |
#antivirals ⇒ Object
Returns the value of attribute antivirals
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def @antivirals end |
#ascites ⇒ Object
Returns the value of attribute ascites
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def ascites @ascites end |
#bilirubin ⇒ Object
Returns the value of attribute bilirubin
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def bilirubin @bilirubin end |
#fatigue ⇒ Object
Returns the value of attribute fatigue
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def fatigue @fatigue end |
#histology ⇒ Object
Returns the value of attribute histology
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def histology @histology end |
#label ⇒ Object
Returns the value of attribute label
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def label @label end |
#liver_big ⇒ Object
Returns the value of attribute liver_big
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def liver_big @liver_big end |
#liver_firm ⇒ Object
Returns the value of attribute liver_firm
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def liver_firm @liver_firm end |
#malaise ⇒ Object
Returns the value of attribute malaise
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def malaise @malaise end |
#protime ⇒ Object
Returns the value of attribute protime
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def protime @protime end |
#sex ⇒ Object
Returns the value of attribute sex
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def sex @sex end |
#sgot ⇒ Object
Returns the value of attribute sgot
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def sgot @sgot end |
#spiders ⇒ Object
Returns the value of attribute spiders
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def spiders @spiders end |
#spleen_palpable ⇒ Object
Returns the value of attribute spleen_palpable
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def spleen_palpable @spleen_palpable end |
#steroid ⇒ Object
Returns the value of attribute steroid
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def steroid @steroid end |
#varices ⇒ Object
Returns the value of attribute varices
7 8 9 |
# File 'lib/datasets/hepatitis.rb', line 7 def varices @varices end |