Sha256: 8d3f2e5513b2d9783a930ab0ebcc0e0c919f9532f0c7f87fd1bac17dc3abf416
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
require "flex_station_data/services/value_quality" module FlexStationData class SampleQuality include Concerns::Service attr_reader :sample, :options def initialize(sample, **options) @sample = sample @options = options end def value_quality(value) ValueQuality.call(value, **options) end def call sample.values.flatten.map(&method(:value_quality)).uniq(&:to_s) 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/services/sample_quality.rb |
flex-station-data-1.0.0 | lib/flex_station_data/services/sample_quality.rb |