class ShellyplugExporter::Plug

Overview

Plug class represents a Shelly plug device and provides methods to query data from it.

config = ShellyplugExporter::Config.new
ShellyplugExporter::Plug.new(config)

Defined in:

shellyplug_exporter/plug.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config) #

[View source]

Instance Method Detail

def name : String | Nil #

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

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

[View source]