Sha256: 5c78c22d1ffb9eba8a829e7e4639116978c6ad21d6a97ba23b956bcbadeac7f6
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flex-station-data-1.0.2 | lib/flex_station_data/presenters/plate_hash.rb |