Class: Veracode::Result::AppendixType
- Inherits:
-
Common::Base
- Object
- Common::Base
- Veracode::Result::AppendixType
- Defined in:
- lib/veracode/api/types.rb
Instance Method Summary collapse
-
#screenshot ⇒ Object
xml_reader :screenshot, :as => [Screenshot].
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
#screenshot ⇒ Object
xml_reader :screenshot, :as => [Screenshot]
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/veracode/api/types.rb', line 102 def screenshot @screenshots ||= [] begin if @screenshots.empty? if @xml_hash.screenshot.class == Array @screenshots = @xml_hash.screenshot.map do |screenshot| Screenshot.new(screenshot) end else @screenshots << Screenshot.new(@xml_hash.screenshot) end end rescue NoMethodError end return @screenshots end |