Parent

Methods

KASPAuditor::Config::SOA

Attributes

minimum[RW]
serial[RW]
ttl[RW]

Public Class Methods

new(e) click to toggle source
# File ../../auditor/lib/kasp_auditor/config.rb, line 217
def initialize(e)
  ttl_text = e.elements['TTL'].text
  @ttl = Config.xsd_duration_to_seconds(ttl_text)
  min_text = e.elements['Minimum'].text
  @minimum = Config.xsd_duration_to_seconds(min_text)
  @serial = e.elements['Serial'].text
  if (!([UNIXTIME, COUNTER, DATECOUNTER, KEEP].include?@serial))
    # @TODO@ Log errors encountered in config?
    # Leave to policy configuration auditor
    print "ERROR : zone serial type incorrect! (#{@serial} found)\n"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.