Class: Veracode::Result::DetailedReport

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

#grace_period_expired?Boolean

Returns:

  • (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

Returns:

  • (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

#severityObject



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