Sha256: d253f81e4e145c28854dfe64e16314722c3980f030c227cffdb39fd99c8aa822
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
require "flex_station_data/services/value_quality" module FlexStationData class SampleQuality include Concerns::Service attr_reader :sample, :value_quality_control def initialize(sample, value_quality_control: ValueQuality) @sample = sample @value_quality_control = value_quality_control end def call sample.readings.flat_map(&:values).map(&value_quality_control).uniq(&:to_s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flex-station-data-0.2.0 | lib/flex_station_data/services/sample_quality.rb |