Class: PrNotifier::PullRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/pr-notifier/github.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#assigneesObject (readonly)

Returns the value of attribute assignees.



5
6
7
# File 'lib/pr-notifier/github.rb', line 5

def assignees
  @assignees
end

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/pr-notifier/github.rb', line 5

def body
  @body
end

#created_atObject (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

#creatorObject (readonly)

Returns the value of attribute creator.



5
6
7
# File 'lib/pr-notifier/github.rb', line 5

def creator
  @creator
end

#repoObject (readonly)

Returns the value of attribute repo.



5
6
7
# File 'lib/pr-notifier/github.rb', line 5

def repo
  @repo
end

#repo_urlObject (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

#reviewersObject (readonly)

Returns the value of attribute reviewers.



5
6
7
# File 'lib/pr-notifier/github.rb', line 5

def reviewers
  @reviewers
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/pr-notifier/github.rb', line 5

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/pr-notifier/github.rb', line 5

def url
  @url
end