Class: FlexStationData::Plate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, times, temperatures, wells, sample_map) ⇒ Plate

Returns a new instance of Plate.



9
10
11
12
13
14
15
# File 'lib/flex_station_data/plate.rb', line 9

def initialize(label, times, temperatures, wells, sample_map)
  @label = label
  @times = times
  @temperatures = temperatures
  @wells = wells
  @sample_map = sample_map
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



7
8
9
# File 'lib/flex_station_data/plate.rb', line 7

def label
  @label
end

#sample_mapObject (readonly)

Returns the value of attribute sample_map.



7
8
9
# File 'lib/flex_station_data/plate.rb', line 7

def sample_map
  @sample_map
end

#temperaturesObject (readonly)

Returns the value of attribute temperatures.



7
8
9
# File 'lib/flex_station_data/plate.rb', line 7

def temperatures
  @temperatures
end

#timesObject (readonly)

Returns the value of attribute times.



7
8
9
# File 'lib/flex_station_data/plate.rb', line 7

def times
  @times
end

#wellsObject (readonly)

Returns the value of attribute wells.



7
8
9
# File 'lib/flex_station_data/plate.rb', line 7

def wells
  @wells
end

Instance Method Details

#samplesObject



17
18
19
20
21
# File 'lib/flex_station_data/plate.rb', line 17

def samples
  @samples ||= sample_map.map do |label, well_labels|
    Sample.new(label, well_labels, self)
  end
end