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


Instance Method Detail

def client : PlugClient #

def client=(client : PlugClient) #

def config : PlugConfig #

def config=(config : PlugConfig) #

def name : String | Nil #

def name=(name : String | Nil) #

def query_data : Hash(Symbol, Float64 | Int64) #

Queries the plug for metrics data.