module JmeterPerf class DSL def mailer_visualizer(params = {}, &) node = JmeterPerf::MailerVisualizer.new(params) attach_node(node, &) end end class MailerVisualizer attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "MailerVisualizer" : (params[:name] || "MailerVisualizer") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) false saveConfig true true true true false true false false false false false false false false false false false false 0 true true true 2 2 EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end