Sha256: ef6faeef96edaf49438262afe74a90a7d9d6a8f7eff17fd427aa3da6a1144491

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
flex-station-data-1.0.2 lib/flex_station_data/plate.rb