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.


def self.new(exporter_port : Int32, plugs : Array(PlugConfig)) #

Instance Method Detail

def exporter_port : Int32 #

def exporter_port=(exporter_port : Int32) #

def plugs : Array(PlugConfig) #

def plugs=(plugs : Array(PlugConfig)) #