module RubyJmeter class DSL def ftp_request(params={}, &block) node = RubyJmeter::FtpRequest.new(params) attach_node(node, &block) end end class FtpRequest attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'FtpRequest' : (params[:name] || 'FtpRequest') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) false false false ) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end