Class: RubocopPr::Repositories::Github::PullRequest
- Defined in:
- lib/rubocop_pr/repositories/github.rb
Overview
The representation of the PR
Instance Attribute Summary collapse
-
#reviewers ⇒ Object
readonly
Returns the value of attribute reviewers.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(cop:, **opt) ⇒ PullRequest
constructor
A new instance of PullRequest.
Methods inherited from Base
#assignees, #build_command, #create, #labels
Constructor Details
#initialize(cop:, **opt) ⇒ PullRequest
Returns a new instance of PullRequest.
83 84 85 86 87 88 |
# File 'lib/rubocop_pr/repositories/github.rb', line 83 def initialize(cop:, **opt) super @assignees = Array opt[:pull_request_assignees] @labels = Array opt[:pull_request_labels] @reviewers = Array opt[:pull_request_reviewers] end |
Instance Attribute Details
#reviewers ⇒ Object (readonly)
Returns the value of attribute reviewers.
81 82 83 |
# File 'lib/rubocop_pr/repositories/github.rb', line 81 def reviewers @reviewers end |