class
ShellyplugExporter::Config
- ShellyplugExporter::Config
- Reference
- Object
Overview
Represents the exporter configuration, supporting multiple plugs.
Defined in:
shellyplug_exporter/config.crConstant Summary
-
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))
Class Method Summary
Instance Method Summary
- #exporter_port : Int32
- #exporter_port=(exporter_port : Int32)
- #plugs : Array(PlugConfig)
- #plugs=(plugs : Array(PlugConfig))
Constructor Detail
Loads configuration from a YAML file, auto-detected default path, or environment variables.