# File ../../auditor/lib/kasp_auditor/config.rb, line 251 def initialize(e) # Algorithm length and value @algorithm = Dnsruby::Algorithms.new(e.elements['Algorithm'].text.to_i) begin @standby = e.elements['Standby'].text.to_i rescue Exception @standby = 0 end lifetime_text = e.elements['Lifetime'].text @lifetime = Config.xsd_duration_to_seconds(lifetime_text) if (@lifetime == 0) @lifetime = 999999999999 end e.elements.each('Algorithm') {|s| @alg_length = s.attributes['length'].to_i } end
Generated with the Darkfish Rdoc Generator 2.