Class: Gitlab::Ci::Reports::Security::Analyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/reports/security/analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, name:, version:, vendor:) ⇒ Analyzer

Returns a new instance of Analyzer.


10
11
12
13
14
15
# File 'lib/gitlab/ci/reports/security/analyzer.rb', line 10

def initialize(id:, name:, version:, vendor:)
  @id = id
  @name = name
  @version = version
  @vendor = vendor
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.


8
9
10
# File 'lib/gitlab/ci/reports/security/analyzer.rb', line 8

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.


8
9
10
# File 'lib/gitlab/ci/reports/security/analyzer.rb', line 8

def name
  @name
end

#vendorObject (readonly)

Returns the value of attribute vendor.


8
9
10
# File 'lib/gitlab/ci/reports/security/analyzer.rb', line 8

def vendor
  @vendor
end

#versionObject (readonly)

Returns the value of attribute version.


8
9
10
# File 'lib/gitlab/ci/reports/security/analyzer.rb', line 8

def version
  @version
end