Class: Contrast::Agent::Reporting::Settings::Assess
- Defined in:
- lib/contrast/agent/reporting/settings/assess.rb
Overview
Application level settings for the Assess featureset.
Instance Method Summary collapse
-
#disabled_rules ⇒ Object
Assess rules to disable for this application.
- #disabled_rules=(disabled_rules) ⇒ Object
-
#rule_settings ⇒ Hash<String,Contrast::Agent::Reporting::Settings::AssessRule>
Map of rule, by id, to configuration.
-
#session_id ⇒ Object
The id of a session on TeamServer under which this session of this application should report Overrides that set by application.session_id (should match if provided).
-
#session_id=(session_id) ⇒ Object
Set the session_id.
Instance Method Details
#disabled_rules ⇒ Object
Assess rules to disable for this application.
17 18 19 20 21 22 23 24 25 |
# File 'lib/contrast/agent/reporting/settings/assess.rb', line 17 def disabled_rules @_disabled_rules ||= begin disabled = [] rule_settings.each_pair do |rule_id, rules_setting| disabled << rule_id unless rules_setting.enable end disabled end end |
#disabled_rules=(disabled_rules) ⇒ Object
29 30 31 |
# File 'lib/contrast/agent/reporting/settings/assess.rb', line 29 def disabled_rules= disabled_rules @_disabled_rules = disabled_rules if disabled_rules.is_a?(Array) end |
#rule_settings ⇒ Hash<String,Contrast::Agent::Reporting::Settings::AssessRule>
Returns map of rule, by id, to configuration.
35 36 37 |
# File 'lib/contrast/agent/reporting/settings/assess.rb', line 35 def rule_settings @_rule_settings ||= {} end |
#session_id ⇒ Object
The id of a session on TeamServer under which this session of this application should report Overrides that set by application.session_id (should match if provided).
43 44 45 |
# File 'lib/contrast/agent/reporting/settings/assess.rb', line 43 def session_id @_session_id end |