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.


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

def idle_minutes : Int32 #

Number of minutes of inactivity between IP checks.


def idle_minutes=(idle_minutes : Int32) #

Number of minutes of inactivity between IP checks.


def scw_secret_key : String #

Secret key from Scaleway required for IP update.


def scw_secret_key=(scw_secret_key : String) #

Secret key from Scaleway required for IP update.