Class: MergeRequest::ApprovalRemovalSettings

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
app/models/merge_request/approval_removal_settings.rb

Overview

rubocop:disable Style/ClassAndModuleChildren

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, reset_approvals_on_push, selective_code_owner_removals) ⇒ ApprovalRemovalSettings

Returns a new instance of ApprovalRemovalSettings.



10
11
12
13
14
# File 'app/models/merge_request/approval_removal_settings.rb', line 10

def initialize(project, reset_approvals_on_push, selective_code_owner_removals)
  @project = project
  @reset_approvals_on_push = reset_approvals_on_push
  @selective_code_owner_removals = selective_code_owner_removals
end

Instance Attribute Details

#projectObject

Returns the value of attribute project.



6
7
8
# File 'app/models/merge_request/approval_removal_settings.rb', line 6

def project
  @project
end