Sha256: a602385087453b913d5c706642fb59e44d20bb136e5a5eb9db5db0a347a441da
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
require "flex_station_data/presenters/sample_hash" module FlexStationData module Presenters class PlateHash include Concerns::Presenter attr_reader :plate, :options delegate :times, :samples, to: :plate def initialize(plate, **options) @plate = plate @options = options end def present samples.map do |sample| { "plate" => plate.label }.merge(SampleHash.present(times, sample, **options)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flex-station-data-1.0.1 | lib/flex_station_data/presenters/plate_hash.rb |
flex-station-data-1.0.0 | lib/flex_station_data/presenters/plate_hash.rb |