mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-04-29 13:34:37 -07:00
776fc3ccdb
Necessary to identify the sensor information further. Milestone: minor
17 lines
343 B
Ruby
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
|