class ScalewayDDNS::Config

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Creates a new instance of ScalewayDDNS::Config based on environment variables.


[View source]

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"]

[View source]
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"]

[View source]
def idle_minutes : Int32 #

Number of minutes of inactivity between IP checks.


[View source]
def idle_minutes=(idle_minutes : Int32) #

Number of minutes of inactivity between IP checks.


[View source]
def scw_secret_key : String #

Secret key from Scaleway required for IP update.


[View source]
def scw_secret_key=(scw_secret_key : String) #

Secret key from Scaleway required for IP update.


[View source]