Class: BscanHelper::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/bscan/utils/bscan_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(n, u, sev, conf, req, rsp, id = '', ib = '', rb = '') ⇒ Issue

Returns a new instance of Issue.



36
37
38
39
# File 'lib/bscan/utils/bscan_helper.rb', line 36

def initialize(n, u, sev, conf, req, rsp, id='', ib='', rb='')
@issue_name,@url,@severity,@confidence,@issue_background,@issue_detail,@remediation_background,@http_messages=
  n,u,sev,conf,ib,id,rb,[Message.new(req,rsp)]
end

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence.



30
31
32
# File 'lib/bscan/utils/bscan_helper.rb', line 30

def confidence
  @confidence
end

#http_messagesObject

Returns the value of attribute http_messages.



34
35
36
# File 'lib/bscan/utils/bscan_helper.rb', line 34

def http_messages
  @http_messages
end

#issue_backgroundObject

Returns the value of attribute issue_background.



31
32
33
# File 'lib/bscan/utils/bscan_helper.rb', line 31

def issue_background
  @issue_background
end

#issue_detailObject

Returns the value of attribute issue_detail.



32
33
34
# File 'lib/bscan/utils/bscan_helper.rb', line 32

def issue_detail
  @issue_detail
end

#issue_nameObject

Returns the value of attribute issue_name.



27
28
29
# File 'lib/bscan/utils/bscan_helper.rb', line 27

def issue_name
  @issue_name
end

#remediation_backgroundObject

Returns the value of attribute remediation_background.



33
34
35
# File 'lib/bscan/utils/bscan_helper.rb', line 33

def remediation_background
  @remediation_background
end

#severityObject

Returns the value of attribute severity.



29
30
31
# File 'lib/bscan/utils/bscan_helper.rb', line 29

def severity
  @severity
end

#urlObject

Returns the value of attribute url.



28
29
30
# File 'lib/bscan/utils/bscan_helper.rb', line 28

def url
  @url
end