class ShellyplugExporter::Config
- ShellyplugExporter::Config
- Reference
- Object
Overview
A configuration entry for the program.
Config can be loaded from environment variables and adjusted.
config = ShellyplugExporter::Config.new
config.exporter_port = my_exporter_port
Defined in:
shellyplug_exporter/config.crConstructors
-
.new
Creates a new instance of
ShellyplugExporter::Config
based on environment variables.
Instance Method Summary
-
#exporter_port : Int32
Port through which the web server of the exporter will be accessible.
-
#exporter_port=(exporter_port : Int32)
Port through which the web server of the exporter will be accessible.
-
#last_request_succeded : Bool | Nil
Boolean representing if last request of the plug was successful.
-
#last_request_succeded=(last_request_succeded : Bool | Nil)
Boolean representing if last request of the plug was successful.
-
#plug_auth_password : String | Nil
Password for authentication of the plug (can be configured in the plug).
-
#plug_auth_password=(plug_auth_password : String | Nil)
Password for authentication of the plug (can be configured in the plug).
-
#plug_auth_username : String | Nil
Username for authentication of the plug (can be configured in the plug).
-
#plug_auth_username=(plug_auth_username : String | Nil)
Username for authentication of the plug (can be configured in the plug).
-
#plug_host : String
Hostname or ip address of the plug.
-
#plug_host=(plug_host : String)
Hostname or ip address of the plug.
-
#plug_port : Int32
Port of the plug api.
-
#plug_port=(plug_port : Int32)
Port of the plug api.
Constructor Detail
Instance Method Detail
Port through which the web server of the exporter will be accessible.
Boolean representing if last request of the plug was successful.
Boolean representing if last request of the plug was successful.
Password for authentication of the plug (can be configured in the plug).
Password for authentication of the plug (can be configured in the plug).
Username for authentication of the plug (can be configured in the plug).
Username for authentication of the plug (can be configured in the plug).