Class: Gitlab::Triage::Action::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/triage/action/base.rb

Direct Known Subclasses

Comment, CommentOnSummary, Delete, Issue, Summarize

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy:, network:) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/gitlab/triage/action/base.rb', line 7

def initialize(policy:, network:)
  @policy = policy
  @network = network
end

Instance Attribute Details

#networkObject (readonly)

Returns the value of attribute network.



5
6
7
# File 'lib/gitlab/triage/action/base.rb', line 5

def network
  @network
end

#policyObject (readonly)

Returns the value of attribute policy.



5
6
7
# File 'lib/gitlab/triage/action/base.rb', line 5

def policy
  @policy
end