Class: Veracode::Upload::ApplicationInfo
- Inherits:
-
Common::Base
- Object
- Common::Base
- Veracode::Upload::ApplicationInfo
- Defined in:
- lib/veracode/api/upload.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
#application ⇒ Object
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/veracode/api/upload.rb', line 110 def application @applications ||= [] begin if @applications.empty? if @xml_hash.application.class == Array @applications = @xml_hash.application.map do |item| Application.new(item) end else @applications << Application.new(@xml_hash.application) end end rescue NoMethodError end return @applications end |