Class: Datasets::Hepatitis::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/datasets/hepatitis.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ageObject

Returns the value of attribute age

Returns:

  • (Object)

    the current value of age



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def age
  @age
end

#albuminObject

Returns the value of attribute albumin

Returns:

  • (Object)

    the current value of albumin



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def albumin
  @albumin
end

#alkaline_phosphateObject

Returns the value of attribute alkaline_phosphate

Returns:

  • (Object)

    the current value of alkaline_phosphate



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def alkaline_phosphate
  @alkaline_phosphate
end

#anorexiaObject

Returns the value of attribute anorexia

Returns:

  • (Object)

    the current value of anorexia



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def anorexia
  @anorexia
end

#antiviralsObject

Returns the value of attribute antivirals

Returns:

  • (Object)

    the current value of antivirals



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def antivirals
  @antivirals
end

#ascitesObject

Returns the value of attribute ascites

Returns:

  • (Object)

    the current value of ascites



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def ascites
  @ascites
end

#bilirubinObject

Returns the value of attribute bilirubin

Returns:

  • (Object)

    the current value of bilirubin



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def bilirubin
  @bilirubin
end

#fatigueObject

Returns the value of attribute fatigue

Returns:

  • (Object)

    the current value of fatigue



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def fatigue
  @fatigue
end

#histologyObject

Returns the value of attribute histology

Returns:

  • (Object)

    the current value of histology



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def histology
  @histology
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def label
  @label
end

#liver_bigObject

Returns the value of attribute liver_big

Returns:

  • (Object)

    the current value of liver_big



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def liver_big
  @liver_big
end

#liver_firmObject

Returns the value of attribute liver_firm

Returns:

  • (Object)

    the current value of liver_firm



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def liver_firm
  @liver_firm
end

#malaiseObject

Returns the value of attribute malaise

Returns:

  • (Object)

    the current value of malaise



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def malaise
  @malaise
end

#protimeObject

Returns the value of attribute protime

Returns:

  • (Object)

    the current value of protime



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def protime
  @protime
end

#sexObject

Returns the value of attribute sex

Returns:

  • (Object)

    the current value of sex



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def sex
  @sex
end

#sgotObject

Returns the value of attribute sgot

Returns:

  • (Object)

    the current value of sgot



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def sgot
  @sgot
end

#spidersObject

Returns the value of attribute spiders

Returns:

  • (Object)

    the current value of spiders



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def spiders
  @spiders
end

#spleen_palpableObject

Returns the value of attribute spleen_palpable

Returns:

  • (Object)

    the current value of spleen_palpable



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def spleen_palpable
  @spleen_palpable
end

#steroidObject

Returns the value of attribute steroid

Returns:

  • (Object)

    the current value of steroid



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def steroid
  @steroid
end

#varicesObject

Returns the value of attribute varices

Returns:

  • (Object)

    the current value of varices



7
8
9
# File 'lib/datasets/hepatitis.rb', line 7

def varices
  @varices
end