class
ShellyplugExporter::Config
- ShellyplugExporter::Config
- Reference
- Object
Overview
Represents the exporter configuration, supporting multiple plugs.
Defined in:
shellyplug_exporter/config.crConstructors
-
.load(yaml_path : String | Nil = nil) : self
Loads configuration from a YAML file or environment variables.
- .new(exporter_port : Int32, plugs : Array(PlugConfig))
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 or environment variables.