Class: Contrast::Agent::Reporting::Settings::Assess

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/agent/reporting/settings/assess.rb

Overview

Application level settings for the Assess featureset.

Instance Method Summary collapse

Instance Method Details

#disabled_rulesObject

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

Parameters:

  • disabled_rules (Array)

    with AssessRuleID strings



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_settingsHash<String,Contrast::Agent::Reporting::Settings::AssessRule>

Returns map of rule, by id, to configuration.

Returns:



35
36
37
# File 'lib/contrast/agent/reporting/settings/assess.rb', line 35

def rule_settings
  @_rule_settings ||= {}
end

#session_idObject

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

#session_id=(session_id) ⇒ Object

Set the session_id

Parameters:



51
52
53
# File 'lib/contrast/agent/reporting/settings/assess.rb', line 51

def session_id= session_id
  @_session_id = session_id if session_id.is_a?(String) && !session_id.blank?
end