Class: Gf::PullRequest
- Inherits:
-
Object
- Object
- Gf::PullRequest
- Defined in:
- lib/gf.rb
Instance Method Summary collapse
- #branch_name ⇒ Object
- #changed_files ⇒ Object
- #html_url ⇒ Object
-
#initialize(pull_request_params) ⇒ PullRequest
constructor
A new instance of PullRequest.
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_name ⇒ Object
105 106 107 |
# File 'lib/gf.rb', line 105 def branch_name @pull_request_params[:head][:label] end |
#changed_files ⇒ Object
97 98 99 |
# File 'lib/gf.rb', line 97 def changed_files @changed_files ||= fetch_changed_files end |
#html_url ⇒ Object
101 102 103 |
# File 'lib/gf.rb', line 101 def html_url @pull_request_params[:_links][:html][:href] end |