class ScalewayDDNS::Config
- ScalewayDDNS::Config
- Reference
- Object
Overview
A configuration entry for the pogram.
Config can be loaded from environment variables and adjusted.
config = ScalewayDDNS::Config.new
config.idle_minutes = my_idle_minutes
Defined in:
scaleway_ddns/config.crConstructors
-
.new
Creates a new instance of
ScalewayDDNS::Config
based on environment variables.
Instance Method Summary
-
#domain_list : Array(String)
Represents a list of domains whose address record needs to be updated.
-
#domain_list=(domain_list : Array(String))
Represents a list of domains whose address record needs to be updated.
-
#idle_minutes : Int32
Number of minutes of inactivity between IP checks.
-
#idle_minutes=(idle_minutes : Int32)
Number of minutes of inactivity between IP checks.
-
#scw_secret_key : String
Secret key from Scaleway required for IP update.
-
#scw_secret_key=(scw_secret_key : String)
Secret key from Scaleway required for IP update.
Constructor Detail
Instance Method Detail
def domain_list : Array(String)
#
Represents a list of domains whose address record needs to be updated.
config = ScalewayDDNS::Config.new
config.domain_list = ["example.com", "another.com"]
def domain_list=(domain_list : Array(String))
#
Represents a list of domains whose address record needs to be updated.
config = ScalewayDDNS::Config.new
config.domain_list = ["example.com", "another.com"]