Class: Veracode::Upload::AppList
- Inherits:
-
Common::Base
- Object
- Common::Base
- Veracode::Upload::AppList
- 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
#app ⇒ Object
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/veracode/api/upload.rb', line 137 def app @applications ||= [] begin if @applications.empty? if @xml_hash.app.class == Array @applications = @xml_hash.app.map do |item| App.new(item) end else @applications << App.new(@xml_hash.app) end end rescue NoMethodError end return @applications end |