Class: Veracode::Upload::BuildList

Inherits:
Common::Base show all
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

#buildObject



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/veracode/api/upload.rb', line 62

def build
  @builds ||= []
  begin  
    if @builds.empty?      
      if @xml_hash.build.class == Array
        @builds = @xml_hash.build.map do |item|
          Build.new(item)
        end
      else
        @builds << Build.new(@xml_hash.build)
      end
    end
  rescue NoMethodError
  end
  return @builds
end