Class: Gitlab::Ci::Reports::Security::ScannedResource

Inherits:
Object
  • Object
show all
Includes:
Utils::StrongMemoize
Defined in:
lib/gitlab/ci/reports/security/scanned_resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

#initialize(uri, request_method) ⇒ ScannedResource

Returns a new instance of ScannedResource.

Raises:

  • (ArgumentError)

15
16
17
18
19
20
# File 'lib/gitlab/ci/reports/security/scanned_resource.rb', line 15

def initialize(uri, request_method)
  raise ArgumentError unless uri.is_a?(URI)

  @request_method = request_method
  @request_uri = uri
end

Instance Attribute Details

#request_methodObject (readonly)

Returns the value of attribute request_method.


10
11
12
# File 'lib/gitlab/ci/reports/security/scanned_resource.rb', line 10

def request_method
  @request_method
end

#request_uriObject (readonly)

Returns the value of attribute request_uri.


11
12
13
# File 'lib/gitlab/ci/reports/security/scanned_resource.rb', line 11

def request_uri
  @request_uri
end