Class: Veracode::Result::Builds::Build

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

#analysis_unitsObject



35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/veracode/api/builds.rb', line 35

def analysis_units
  @analysis_units ||= []
  if @analysis_units.empty?
    if @xml_hash.analysis_unit.class == Array
      @analysis_units = @xml_hash.analysis_unit.map do |analysis_unit|
        AnalysisUnit.new(analysis_unit)
      end
    else
      @analysis_units << AnalysisUnit.new(@xml_hash.analysis_unit)
    end
  end
  return @analysis_units
end

#grace_period_expired?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/veracode/api/builds.rb', line 23

def grace_period_expired?
  @grace_period_expired ||= @xml_hash.grace_period_expired.to_bool
end

#results_ready?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/veracode/api/builds.rb', line 31

def results_ready?
  @results_ready ||= @xml_hash.results_ready.to_bool
end

#scan_overdue?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/veracode/api/builds.rb', line 27

def scan_overdue?
  @scan_overdue ||= @xml_hash.scan_overdue.to_bool
end