Class: Finding
- Inherits:
-
Object
- Object
- Finding
- Defined in:
- lib/model/data.rb
Instance Attribute Summary collapse
-
#a ⇒ Object
Returns the value of attribute a.
-
#ac ⇒ Object
Returns the value of attribute ac.
-
#affected_hosts ⇒ Object
Returns the value of attribute affected_hosts.
-
#affected_users ⇒ Object
Returns the value of attribute affected_users.
-
#ar ⇒ Object
Returns the value of attribute ar.
-
#assessment_type ⇒ Object
Returns the value of attribute assessment_type.
-
#attack_complexity ⇒ Object
Returns the value of attribute attack_complexity.
-
#attack_vector ⇒ Object
Returns the value of attribute attack_vector.
-
#au ⇒ Object
Returns the value of attribute au.
-
#av ⇒ Object
Returns the value of attribute av.
-
#availability ⇒ Object
Returns the value of attribute availability.
-
#availability_requirement ⇒ Object
Returns the value of attribute availability_requirement.
-
#c ⇒ Object
Returns the value of attribute c.
-
#c2_vs ⇒ Object
Returns the value of attribute c2_vs.
-
#c3_vs ⇒ Object
Returns the value of attribute c3_vs.
-
#cdp ⇒ Object
Returns the value of attribute cdp.
-
#confidentiality ⇒ Object
Returns the value of attribute confidentiality.
-
#confidentiality_requirement ⇒ Object
Returns the value of attribute confidentiality_requirement.
-
#cr ⇒ Object
Returns the value of attribute cr.
-
#cvss_base ⇒ Object
Returns the value of attribute cvss_base.
-
#cvss_base_score ⇒ Object
Returns the value of attribute cvss_base_score.
-
#cvss_environmental ⇒ Object
Returns the value of attribute cvss_environmental.
-
#cvss_exploitability ⇒ Object
Returns the value of attribute cvss_exploitability.
-
#cvss_impact ⇒ Object
Returns the value of attribute cvss_impact.
-
#cvss_impact_score ⇒ Object
Returns the value of attribute cvss_impact_score.
-
#cvss_mod_impact_score ⇒ Object
Returns the value of attribute cvss_mod_impact_score.
-
#cvss_modified_impact ⇒ Object
Returns the value of attribute cvss_modified_impact.
-
#cvss_temporal ⇒ Object
Returns the value of attribute cvss_temporal.
-
#cvss_total ⇒ Object
Returns the value of attribute cvss_total.
-
#damage ⇒ Object
Returns the value of attribute damage.
-
#discoverability ⇒ Object
Returns the value of attribute discoverability.
-
#dread_total ⇒ Object
Returns the value of attribute dread_total.
-
#e ⇒ Object
Returns the value of attribute e.
-
#ease ⇒ Object
Returns the value of attribute ease.
-
#effort ⇒ Object
Returns the value of attribute effort.
-
#exploit_maturity ⇒ Object
Returns the value of attribute exploit_maturity.
-
#exploitability ⇒ Object
Returns the value of attribute exploitability.
-
#i ⇒ Object
Returns the value of attribute i.
-
#id ⇒ Object
Returns the value of attribute id.
-
#integrity ⇒ Object
Returns the value of attribute integrity.
-
#integrity_requirement ⇒ Object
Returns the value of attribute integrity_requirement.
-
#ir ⇒ Object
Returns the value of attribute ir.
-
#likelihood ⇒ Object
Returns the value of attribute likelihood.
-
#likelihood_rationale ⇒ Object
Returns the value of attribute likelihood_rationale.
-
#mod_attack_complexity ⇒ Object
Returns the value of attribute mod_attack_complexity.
-
#mod_attack_vector ⇒ Object
Returns the value of attribute mod_attack_vector.
-
#mod_availability ⇒ Object
Returns the value of attribute mod_availability.
-
#mod_confidentiality ⇒ Object
Returns the value of attribute mod_confidentiality.
-
#mod_integrity ⇒ Object
Returns the value of attribute mod_integrity.
-
#mod_privileges_required ⇒ Object
Returns the value of attribute mod_privileges_required.
-
#mod_scope ⇒ Object
Returns the value of attribute mod_scope.
-
#mod_user_interaction ⇒ Object
Returns the value of attribute mod_user_interaction.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#overview ⇒ Object
Returns the value of attribute overview.
-
#poc ⇒ Object
Returns the value of attribute poc.
-
#privileges_required ⇒ Object
Returns the value of attribute privileges_required.
-
#rc ⇒ Object
Returns the value of attribute rc.
-
#references ⇒ Object
Returns the value of attribute references.
-
#remediation ⇒ Object
Returns the value of attribute remediation.
-
#remeditation_level ⇒ Object
Returns the value of attribute remeditation_level.
-
#report_confidence ⇒ Object
Returns the value of attribute report_confidence.
-
#reproducability ⇒ Object
Returns the value of attribute reproducability.
-
#risk ⇒ Object
Returns the value of attribute risk.
-
#rl ⇒ Object
Returns the value of attribute rl.
-
#scope_cvss ⇒ Object
Returns the value of attribute scope_cvss.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#severity_rationale ⇒ Object
Returns the value of attribute severity_rationale.
-
#td ⇒ Object
Returns the value of attribute td.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user_interaction ⇒ Object
Returns the value of attribute user_interaction.
Instance Method Summary collapse
Instance Attribute Details
#a ⇒ Object
Returns the value of attribute a.
8 9 10 |
# File 'lib/model/data.rb', line 8 def a @a end |
#ac ⇒ Object
Returns the value of attribute ac.
8 9 10 |
# File 'lib/model/data.rb', line 8 def ac @ac end |
#affected_hosts ⇒ Object
Returns the value of attribute affected_hosts.
8 9 10 |
# File 'lib/model/data.rb', line 8 def affected_hosts @affected_hosts end |
#affected_users ⇒ Object
Returns the value of attribute affected_users.
8 9 10 |
# File 'lib/model/data.rb', line 8 def affected_users @affected_users end |
#ar ⇒ Object
Returns the value of attribute ar.
8 9 10 |
# File 'lib/model/data.rb', line 8 def ar @ar end |
#assessment_type ⇒ Object
Returns the value of attribute assessment_type.
8 9 10 |
# File 'lib/model/data.rb', line 8 def assessment_type @assessment_type end |
#attack_complexity ⇒ Object
Returns the value of attribute attack_complexity.
8 9 10 |
# File 'lib/model/data.rb', line 8 def attack_complexity @attack_complexity end |
#attack_vector ⇒ Object
Returns the value of attribute attack_vector.
8 9 10 |
# File 'lib/model/data.rb', line 8 def attack_vector @attack_vector end |
#au ⇒ Object
Returns the value of attribute au.
8 9 10 |
# File 'lib/model/data.rb', line 8 def au @au end |
#av ⇒ Object
Returns the value of attribute av.
8 9 10 |
# File 'lib/model/data.rb', line 8 def av @av end |
#availability ⇒ Object
Returns the value of attribute availability.
8 9 10 |
# File 'lib/model/data.rb', line 8 def availability @availability end |
#availability_requirement ⇒ Object
Returns the value of attribute availability_requirement.
8 9 10 |
# File 'lib/model/data.rb', line 8 def availability_requirement @availability_requirement end |
#c ⇒ Object
Returns the value of attribute c.
8 9 10 |
# File 'lib/model/data.rb', line 8 def c @c end |
#c2_vs ⇒ Object
Returns the value of attribute c2_vs.
8 9 10 |
# File 'lib/model/data.rb', line 8 def c2_vs @c2_vs end |
#c3_vs ⇒ Object
Returns the value of attribute c3_vs.
8 9 10 |
# File 'lib/model/data.rb', line 8 def c3_vs @c3_vs end |
#cdp ⇒ Object
Returns the value of attribute cdp.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cdp @cdp end |
#confidentiality ⇒ Object
Returns the value of attribute confidentiality.
8 9 10 |
# File 'lib/model/data.rb', line 8 def confidentiality @confidentiality end |
#confidentiality_requirement ⇒ Object
Returns the value of attribute confidentiality_requirement.
8 9 10 |
# File 'lib/model/data.rb', line 8 def confidentiality_requirement @confidentiality_requirement end |
#cr ⇒ Object
Returns the value of attribute cr.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cr @cr end |
#cvss_base ⇒ Object
Returns the value of attribute cvss_base.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_base @cvss_base end |
#cvss_base_score ⇒ Object
Returns the value of attribute cvss_base_score.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_base_score @cvss_base_score end |
#cvss_environmental ⇒ Object
Returns the value of attribute cvss_environmental.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_environmental @cvss_environmental end |
#cvss_exploitability ⇒ Object
Returns the value of attribute cvss_exploitability.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_exploitability @cvss_exploitability end |
#cvss_impact ⇒ Object
Returns the value of attribute cvss_impact.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_impact @cvss_impact end |
#cvss_impact_score ⇒ Object
Returns the value of attribute cvss_impact_score.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_impact_score @cvss_impact_score end |
#cvss_mod_impact_score ⇒ Object
Returns the value of attribute cvss_mod_impact_score.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_mod_impact_score @cvss_mod_impact_score end |
#cvss_modified_impact ⇒ Object
Returns the value of attribute cvss_modified_impact.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_modified_impact @cvss_modified_impact end |
#cvss_temporal ⇒ Object
Returns the value of attribute cvss_temporal.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_temporal @cvss_temporal end |
#cvss_total ⇒ Object
Returns the value of attribute cvss_total.
8 9 10 |
# File 'lib/model/data.rb', line 8 def cvss_total @cvss_total end |
#damage ⇒ Object
Returns the value of attribute damage.
8 9 10 |
# File 'lib/model/data.rb', line 8 def damage @damage end |
#discoverability ⇒ Object
Returns the value of attribute discoverability.
8 9 10 |
# File 'lib/model/data.rb', line 8 def discoverability @discoverability end |
#dread_total ⇒ Object
Returns the value of attribute dread_total.
8 9 10 |
# File 'lib/model/data.rb', line 8 def dread_total @dread_total end |
#e ⇒ Object
Returns the value of attribute e.
8 9 10 |
# File 'lib/model/data.rb', line 8 def e @e end |
#ease ⇒ Object
Returns the value of attribute ease.
8 9 10 |
# File 'lib/model/data.rb', line 8 def ease @ease end |
#effort ⇒ Object
Returns the value of attribute effort.
8 9 10 |
# File 'lib/model/data.rb', line 8 def effort @effort end |
#exploit_maturity ⇒ Object
Returns the value of attribute exploit_maturity.
8 9 10 |
# File 'lib/model/data.rb', line 8 def exploit_maturity @exploit_maturity end |
#exploitability ⇒ Object
Returns the value of attribute exploitability.
8 9 10 |
# File 'lib/model/data.rb', line 8 def exploitability @exploitability end |
#i ⇒ Object
Returns the value of attribute i.
8 9 10 |
# File 'lib/model/data.rb', line 8 def i @i end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/model/data.rb', line 8 def id @id end |
#integrity ⇒ Object
Returns the value of attribute integrity.
8 9 10 |
# File 'lib/model/data.rb', line 8 def integrity @integrity end |
#integrity_requirement ⇒ Object
Returns the value of attribute integrity_requirement.
8 9 10 |
# File 'lib/model/data.rb', line 8 def integrity_requirement @integrity_requirement end |
#ir ⇒ Object
Returns the value of attribute ir.
8 9 10 |
# File 'lib/model/data.rb', line 8 def ir @ir end |
#likelihood ⇒ Object
Returns the value of attribute likelihood.
8 9 10 |
# File 'lib/model/data.rb', line 8 def likelihood @likelihood end |
#likelihood_rationale ⇒ Object
Returns the value of attribute likelihood_rationale.
8 9 10 |
# File 'lib/model/data.rb', line 8 def likelihood_rationale @likelihood_rationale end |
#mod_attack_complexity ⇒ Object
Returns the value of attribute mod_attack_complexity.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_attack_complexity @mod_attack_complexity end |
#mod_attack_vector ⇒ Object
Returns the value of attribute mod_attack_vector.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_attack_vector @mod_attack_vector end |
#mod_availability ⇒ Object
Returns the value of attribute mod_availability.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_availability @mod_availability end |
#mod_confidentiality ⇒ Object
Returns the value of attribute mod_confidentiality.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_confidentiality @mod_confidentiality end |
#mod_integrity ⇒ Object
Returns the value of attribute mod_integrity.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_integrity @mod_integrity end |
#mod_privileges_required ⇒ Object
Returns the value of attribute mod_privileges_required.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_privileges_required @mod_privileges_required end |
#mod_scope ⇒ Object
Returns the value of attribute mod_scope.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_scope @mod_scope end |
#mod_user_interaction ⇒ Object
Returns the value of attribute mod_user_interaction.
8 9 10 |
# File 'lib/model/data.rb', line 8 def mod_user_interaction @mod_user_interaction end |
#notes ⇒ Object
Returns the value of attribute notes.
8 9 10 |
# File 'lib/model/data.rb', line 8 def notes @notes end |
#overview ⇒ Object
Returns the value of attribute overview.
8 9 10 |
# File 'lib/model/data.rb', line 8 def overview @overview end |
#poc ⇒ Object
Returns the value of attribute poc.
8 9 10 |
# File 'lib/model/data.rb', line 8 def poc @poc end |
#privileges_required ⇒ Object
Returns the value of attribute privileges_required.
8 9 10 |
# File 'lib/model/data.rb', line 8 def privileges_required @privileges_required end |
#rc ⇒ Object
Returns the value of attribute rc.
8 9 10 |
# File 'lib/model/data.rb', line 8 def rc @rc end |
#references ⇒ Object
Returns the value of attribute references.
8 9 10 |
# File 'lib/model/data.rb', line 8 def references @references end |
#remediation ⇒ Object
Returns the value of attribute remediation.
8 9 10 |
# File 'lib/model/data.rb', line 8 def remediation @remediation end |
#remeditation_level ⇒ Object
Returns the value of attribute remeditation_level.
8 9 10 |
# File 'lib/model/data.rb', line 8 def remeditation_level @remeditation_level end |
#report_confidence ⇒ Object
Returns the value of attribute report_confidence.
8 9 10 |
# File 'lib/model/data.rb', line 8 def report_confidence @report_confidence end |
#reproducability ⇒ Object
Returns the value of attribute reproducability.
8 9 10 |
# File 'lib/model/data.rb', line 8 def reproducability @reproducability end |
#risk ⇒ Object
Returns the value of attribute risk.
8 9 10 |
# File 'lib/model/data.rb', line 8 def risk @risk end |
#rl ⇒ Object
Returns the value of attribute rl.
8 9 10 |
# File 'lib/model/data.rb', line 8 def rl @rl end |
#scope_cvss ⇒ Object
Returns the value of attribute scope_cvss.
8 9 10 |
# File 'lib/model/data.rb', line 8 def scope_cvss @scope_cvss end |
#severity ⇒ Object
Returns the value of attribute severity.
8 9 10 |
# File 'lib/model/data.rb', line 8 def severity @severity end |
#severity_rationale ⇒ Object
Returns the value of attribute severity_rationale.
8 9 10 |
# File 'lib/model/data.rb', line 8 def severity_rationale @severity_rationale end |
#td ⇒ Object
Returns the value of attribute td.
8 9 10 |
# File 'lib/model/data.rb', line 8 def td @td end |
#title ⇒ Object
Returns the value of attribute title.
8 9 10 |
# File 'lib/model/data.rb', line 8 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/model/data.rb', line 8 def type @type end |
#user_interaction ⇒ Object
Returns the value of attribute user_interaction.
8 9 10 |
# File 'lib/model/data.rb', line 8 def user_interaction @user_interaction end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/model/data.rb', line 10 def to_hash hash = {} self.instance_variables.each do |var| #p var.to_s.gsub("@","") hash[var.to_s.gsub("@","").gsub("\"","")] = self.instance_variable_get var end return hash end |