Class: Pra::PullRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/pra/pull_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ PullRequest

Returns a new instance of PullRequest.



7
8
9
10
11
12
13
14
15
16
# File 'lib/pra/pull_request.rb', line 7

def initialize(attributes={})
  @title = attributes[:title]
  @from_reference = attributes[:from_reference]
  @to_reference = attributes[:to_reference]
  @author = attributes[:author]
  @assignee = attributes[:assignee]
  @link = attributes[:link]
  @service_id = attributes[:service_id]
  @repository = attributes[:repository]
end

Instance Attribute Details

#assigneeObject

Returns the value of attribute assignee.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def assignee
  @assignee
end

#authorObject

Returns the value of attribute author.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def author
  @author
end

#from_referenceObject

Returns the value of attribute from_reference.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def from_reference
  @from_reference
end

Returns the value of attribute link.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def link
  @link
end

#repositoryObject

Returns the value of attribute repository.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def repository
  @repository
end

#service_idObject

Returns the value of attribute service_id.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def service_id
  @service_id
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def title
  @title
end

#to_referenceObject

Returns the value of attribute to_reference.



5
6
7
# File 'lib/pra/pull_request.rb', line 5

def to_reference
  @to_reference
end