class ShellyplugExporter::Plug

Overview

Represents a Shelly plug device and provides methods to query data from it.

Defined in:

shellyplug_exporter/plug.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : PlugConfig) #

Initialize with a PlugConfig


[View source]

Instance Method Detail

def client : PlugClient #

[View source]
def client=(client : PlugClient) #

[View source]
def config : PlugConfig #

[View source]
def config=(config : PlugConfig) #

[View source]
def name : String | Nil #

[View source]
def name=(name : String | Nil) #

[View source]
def query_data : Hash(Symbol, Float64 | Int64) #

Queries the plug for metrics data.


[View source]