Class: PrNotifier::PullRequest
- Inherits:
-
Object
- Object
- PrNotifier::PullRequest
- Defined in:
- lib/pr-notifier/github.rb
Instance Attribute Summary collapse
-
#assignees ⇒ Object
readonly
Returns the value of attribute assignees.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#creator ⇒ Object
readonly
Returns the value of attribute creator.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
-
#repo_url ⇒ Object
readonly
Returns the value of attribute repo_url.
-
#reviewers ⇒ Object
readonly
Returns the value of attribute reviewers.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(repo:, repo_url:, url:, title:, body:, reviewers:, assignees:, creator:, created_at:) ⇒ PullRequest
constructor
A new instance of PullRequest.
Constructor Details
#initialize(repo:, repo_url:, url:, title:, body:, reviewers:, assignees:, creator:, created_at:) ⇒ PullRequest
Returns a new instance of PullRequest.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pr-notifier/github.rb', line 7 def initialize(repo:, repo_url:, url:, title:, body:, reviewers:, assignees:, creator:, created_at:) @repo = repo @repo_url = repo_url @url = url @title = title @body = body @reviewers = reviewers @assignees = assignees @creator = creator @created_at = created_at end |
Instance Attribute Details
#assignees ⇒ Object (readonly)
Returns the value of attribute assignees.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def assignees @assignees end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def body @body end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def created_at @created_at end |
#creator ⇒ Object (readonly)
Returns the value of attribute creator.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def creator @creator end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def repo @repo end |
#repo_url ⇒ Object (readonly)
Returns the value of attribute repo_url.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def repo_url @repo_url end |
#reviewers ⇒ Object (readonly)
Returns the value of attribute reviewers.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def reviewers @reviewers end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/pr-notifier/github.rb', line 5 def url @url end |