Class: Saint::Vulnerability
Instance Method Summary collapse
Methods inherited from Base
#initialize, #method_missing, #respond_to?
Constructor Details
This class inherits a constructor from Saint::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Saint::Base
Instance Method Details
#process_field_value(method) ⇒ Object
11 12 13 |
# File 'lib/saint/vulnerability.rb', line 11 def process_field_value(method) @xml.xpath("./#{method.to_s}").first.try(:text) end |
#supported_tags ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/saint/vulnerability.rb', line 3 def [ :description, :hostname, :ipaddr, :hosttype, :scan_time, :status, :severity, :cve, :cvss_base_score, :impact, :background, :problem, :resolution, :reference ] end |