Class: Veracode::Result::Mitigations
- Inherits:
-
Common::Base
- Object
- Common::Base
- Veracode::Result::Mitigations
- Defined in:
- lib/veracode/api/flaws.rb
Instance Method Summary collapse
Methods inherited from Common::Base
api_field, api_type_field, #initialize
Constructor Details
This class inherits a constructor from Veracode::Common::Base
Instance Method Details
#mitigation ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/veracode/api/flaws.rb', line 40 def mitigation @mitigations ||= [] begin if @mitigations.empty? if @xml_hash.mitigation.class == Array @mitigations = @xml_hash.mitigation.map do |mitigation| MitigationType.new(mitigation) end else @mitigations << MitigationType.new(@xml_hash.mitigation) end end rescue NoMethodError end return @mitigations end |