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.


12
13
14
15
16
# File 'lib/gitlab/error_tracking/error_collection.rb', line 12

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


8
9
10
# File 'lib/gitlab/error_tracking/error_collection.rb', line 8

def external_url
  @external_url
end

#issuesObject

Returns the value of attribute issues


8
9
10
# File 'lib/gitlab/error_tracking/error_collection.rb', line 8

def issues
  @issues
end

#projectObject

Returns the value of attribute project


8
9
10
# File 'lib/gitlab/error_tracking/error_collection.rb', line 8

def project
  @project
end

Class Method Details

.declarative_policy_classObject


18
19
20
# File 'lib/gitlab/error_tracking/error_collection.rb', line 18

def self.declarative_policy_class
  'ErrorTracking::BasePolicy'
end