Class: TCGA::Sample

Inherits:
Object
  • Object
show all
Defined in:
lib/tcga.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(barcode, cancer_type) ⇒ Sample

Returns a new instance of Sample.



10
11
12
13
# File 'lib/tcga.rb', line 10

def initialize barcode, cancer_type
  @barcode = barcode
  @cancer_type = cancer_type
end

Instance Attribute Details

#barcodeObject (readonly)

Returns the value of attribute barcode.



9
10
11
# File 'lib/tcga.rb', line 9

def barcode
  @barcode
end

#cancer_typeObject (readonly)

Returns the value of attribute cancer_type.



9
10
11
# File 'lib/tcga.rb', line 9

def cancer_type
  @cancer_type
end