Files
Brooke Kuhlmann 776fc3ccdb Added device ID to device sensor struct Liquid attributes
Necessary to identify the sensor information further.

Milestone: minor
2026-02-25 15:27:48 -07:00

17 lines
343 B
Ruby

# frozen_string_literal: true
require "refinements/hash"
module Terminus
module Structs
# The device sensor struct.
class DeviceSensor < DB::Struct
using Refinements::Hash
def liquid_attributes
{device_id:, make:, model:, kind:, value:, unit:, source:, created_at:}.stringify_keys!
end
end
end
end