Class: Veracode::Result::ManualAnalysis

Inherits:
Common::Base show all
Defined in:
lib/veracode/api/types.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

#modulesObject



172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/veracode/api/types.rb', line 172

def modules
  @modules ||= []
  if @modules.empty?
    if @xml_hash.modules.class == Array
      @modules = @xml_hash.modules.map do |modules|
        Module.new(modules.module)
      end
    else
      @modules << Module.new(@xml_hash.modules.module)
    end
  end
  return @modules
end