lib/dyndnsd/generator/bind.rb in dyndnsd-2.2.0 vs lib/dyndnsd/generator/bind.rb in dyndnsd-2.3.0

- old
+ new

@@ -2,16 +2,16 @@ module Dyndnsd module Generator class Bind # @param domain [String] - # @param config [Hash{String => Object}] - def initialize(domain, config) + # @param updater_params [Hash{String => Object}] + def initialize(domain, updater_params) @domain = domain - @ttl = config['ttl'] - @dns = config['dns'] - @email_addr = config['email_addr'] - @additional_zone_content = config['additional_zone_content'] + @ttl = updater_params['ttl'] + @dns = updater_params['dns'] + @email_addr = updater_params['email_addr'] + @additional_zone_content = updater_params['additional_zone_content'] end # @param db [Dyndnsd::Database] # @return [String] def generate(db)