class
ShellyplugExporter::Plug
- ShellyplugExporter::Plug
- Reference
- Object
Overview
Represents a Shelly plug device and provides methods to query data from it.
Defined in:
shellyplug_exporter/plug.crConstructors
-
.new(config : PlugConfig)
Initialize with a PlugConfig
Instance Method Summary
- #client : PlugClient
- #client=(client : PlugClient)
- #config : PlugConfig
- #config=(config : PlugConfig)
- #name : String | Nil
- #name=(name : String | Nil)
-
#query_data : Hash(Symbol, Float64 | Int64)
Queries the plug for metrics data.