Class: Gridinit::Jmeter::CacheManager
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::CacheManager
- Includes:
- Helper
- Defined in:
- lib/gridinit-jmeter/config/cache_manager.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ CacheManager
constructor
A new instance of CacheManager.
Methods included from Helper
Constructor Details
#initialize(params = {}) ⇒ CacheManager
Returns a new instance of CacheManager.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gridinit-jmeter/config/cache_manager.rb', line 7 def initialize(params={}) @doc = Nokogiri::XML(<<-EOF.strip_heredoc) <CacheManager guiclass="CacheManagerGui" testclass="CacheManager" testname="HTTP Cache Manager" enabled="true"> <boolProp name="clearEachIteration">#{params[:clear_each_iteration] ? 'true' : 'false'}</boolProp> <boolProp name="useExpires">#{params[:use_expires] ? 'true' : 'false'}</boolProp> </CacheManager> EOF params.delete :clear_each_iteration update params end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
5 6 7 |
# File 'lib/gridinit-jmeter/config/cache_manager.rb', line 5 def doc @doc end |