Class: MergeRequest::ApprovalRemovalSettings
- Inherits:
-
Object
- Object
- MergeRequest::ApprovalRemovalSettings
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/merge_request/approval_removal_settings.rb
Overview
rubocop:disable Style/ClassAndModuleChildren
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(project, reset_approvals_on_push, selective_code_owner_removals) ⇒ ApprovalRemovalSettings
constructor
A new instance of ApprovalRemovalSettings.
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
#project ⇒ Object
Returns the value of attribute project.
6 7 8 |
# File 'app/models/merge_request/approval_removal_settings.rb', line 6 def project @project end |