Class: Gf::PullRequest

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

Instance Method Summary collapse

Constructor Details

#initialize(pull_request_params) ⇒ PullRequest

Returns a new instance of PullRequest.



93
94
95
# File 'lib/gf.rb', line 93

def initialize(pull_request_params)
  @pull_request_params = pull_request_params
end

Instance Method Details

#branch_nameObject



105
106
107
# File 'lib/gf.rb', line 105

def branch_name
   @pull_request_params[:head][:label]
end

#changed_filesObject



97
98
99
# File 'lib/gf.rb', line 97

def changed_files
  @changed_files ||= fetch_changed_files
end

#html_urlObject



101
102
103
# File 'lib/gf.rb', line 101

def html_url
  @pull_request_params[:_links][:html][:href]
end