Class: Veracode::Result::DetailedReport
Instance Method Summary
collapse
api_field, api_type_field, #initialize
Instance Method Details
#grace_period_expired? ⇒ Boolean
149
150
151
|
# File 'lib/veracode/api/detailed.rb', line 149
def grace_period_expired?
@grace_period_expired ||= @xml_hash.grace_period_expired.to_bool
end
|
#is_latest_build? ⇒ Boolean
145
146
147
|
# File 'lib/veracode/api/detailed.rb', line 145
def is_latest_build?
@is_latest_build ||= @xml_hash.is_latest_build.to_bool
end
|
#severity ⇒ Object
153
154
155
156
157
158
159
160
161
162
163
164
165
|
# File 'lib/veracode/api/detailed.rb', line 153
def severity
@severity ||= []
if @severity.empty?
if @xml_hash.severity.class == Array
@severity = @xml_hash.severity.map do |sev|
Severity.new(sev)
end
else
@severity << Severity.new(@xml_hash.severity)
end
end
return @severity
end
|