Sha256: 338be24616976d42737cb5667b61c110fe6cf6c4eb57520535c326dd465547c1

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

require "flex_station_data/sample"

module FlexStationData
  class Plate
    attr_reader :label, :times, :temperatures, :wells, :sample_map

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flex-station-data-1.0.1 lib/flex_station_data/plate.rb
flex-station-data-1.0.0 lib/flex_station_data/plate.rb
flex-station-data-0.3.2 lib/flex_station_data/plate.rb