HabitatMap/AirCasting

View on GitHub
app/models/purple_air/measurement.rb

Summary

Maintainability
A
0 mins
Test Coverage
module PurpleAir
  Measurement =
    Struct.new(
      :title,
      :latitude,
      :longitude,
      :time_local,
      :time_utc,
      :value,
      keyword_init: true
    ) do
      def build_stream
        PurpleAir::Stream.new(
          latitude: latitude,
          longitude: longitude,
        )
      end
    end
end