Class: Gitlab::ErrorTracking::ErrorCollection

Inherits:
Object
  • Object
show all
Includes:
GlobalID::Identification
Defined in:
lib/gitlab/error_tracking/error_collection.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project:, external_url: nil, issues: []) ⇒ ErrorCollection

Returns a new instance of ErrorCollection.


14
15
16
17
18
# File 'lib/gitlab/error_tracking/error_collection.rb', line 14

def initialize(project:, external_url: nil, issues: [])
  @project = project
  @external_url = external_url
  @issues = issues
end

Instance Attribute Details

#external_urlObject

Returns the value of attribute external_url.


10
11
12
# File 'lib/gitlab/error_tracking/error_collection.rb', line 10

def external_url
  @external_url
end

#issuesObject

Returns the value of attribute issues.


10
11
12
# File 'lib/gitlab/error_tracking/error_collection.rb', line 10

def issues
  @issues
end

#projectObject

Returns the value of attribute project.


10
11
12
# File 'lib/gitlab/error_tracking/error_collection.rb', line 10

def project
  @project
end

Class Method Details

.declarative_policy_classObject


20
21
22
# File 'lib/gitlab/error_tracking/error_collection.rb', line 20

def self.declarative_policy_class
  'ErrorTracking::BasePolicy'
end