module RubyJmeter class DSL def aggregate_graph(params={}, &block) node = RubyJmeter::AggregateGraph.new(params) attach_node(node, &block) end end class AggregateGraph attr_accessor :doc include Helper def initialize(params={}) params[:name] ||= 'AggregateGraph' @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 ) EOS update params update_at_xpath params if params[:update_at_xpath] end end end