Class: Veracode::Result::Builds::Build
Instance Method Summary
collapse
api_field, api_type_field, #initialize
Instance Method Details
#analysis_units ⇒ Object
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
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
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
27
28
29
|
# File 'lib/veracode/api/builds.rb', line 27
def scan_overdue?
@scan_overdue ||= @xml_hash.scan_overdue.to_bool
end
|