class ShellyplugExporter::Config

Overview

Represents the exporter configuration, supporting multiple plugs.

Defined in:

shellyplug_exporter/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.load(yaml_path : String | Nil = nil) : self #

Loads configuration from a YAML file or environment variables.


[View source]
def self.new(exporter_port : Int32, plugs : Array(PlugConfig)) #

[View source]

Instance Method Detail

def exporter_port : Int32 #

[View source]
def exporter_port=(exporter_port : Int32) #

[View source]
def plugs : Array(PlugConfig) #

[View source]
def plugs=(plugs : Array(PlugConfig)) #

[View source]