ShellyplugExporter::Config
Inherits Reference < Object
Represents the exporter configuration, supporting multiple plugs.
Constants
DEFAULT_CONFIG_PATH = "/config.yaml"
Constructors
load(yaml_path : String | Nil = nil) : self
Loads configuration from a YAML file, auto-detected default path, or environment variables.
new(exporter_port : Int32, plugs : Array(PlugConfig))
SourceClass methods
default_config_path
Sourcedefault_config_path=(default_config_path : String)
SourceInstance methods
exporter_port
Sourceexporter_port=(exporter_port : Int32)
Sourceplugs
Sourceplugs=(plugs : Array(PlugConfig))
Source