Sha256: f388ec265296763c510bc163c15e09a468acf1b23ad620b5e21ea217a2361417

Contents?: true

Size: 256 Bytes

Versions: 8

Compression:

Stored size: 256 Bytes

Contents

module Barometer
  module Data
    module Attribute
      class Pressure < Virtus::Attribute
        def coerce(value)
          value.is_a?(Barometer::Data::Pressure) ? value : Barometer::Data::Pressure.new(*value)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
barometer-0.9.7 lib/barometer/data/attributes/pressure.rb
barometer-0.9.6 lib/barometer/data/attributes/pressure.rb
barometer-0.9.5 lib/barometer/data/attributes/pressure.rb
barometer-0.9.4 lib/barometer/data/attributes/pressure.rb
barometer-0.9.3 lib/barometer/data/attributes/pressure.rb
barometer-0.9.2 lib/barometer/data/attributes/pressure.rb
barometer-0.9.1 lib/barometer/data/attributes/pressure.rb
barometer-0.9.0 lib/barometer/data/attributes/pressure.rb