Class: OctoMerge::InteractivePullRequests
- Inherits:
-
Object
- Object
- OctoMerge::InteractivePullRequests
- Defined in:
- lib/octo_merge/interactive_pull_requests.rb
Overview
TODO: Write specs
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repo:, query:) ⇒ InteractivePullRequests
constructor
A new instance of InteractivePullRequests.
- #pull_requests ⇒ Object
Constructor Details
#initialize(repo:, query:) ⇒ InteractivePullRequests
Returns a new instance of InteractivePullRequests.
4 5 6 7 |
# File 'lib/octo_merge/interactive_pull_requests.rb', line 4 def initialize(repo:, query:) @repo = repo @query = query end |
Class Method Details
.get(options = {}) ⇒ Object
9 10 11 |
# File 'lib/octo_merge/interactive_pull_requests.rb', line 9 def self.get( = {}) new(repo: [:repo], query: [:query]).pull_requests end |
Instance Method Details
#pull_requests ⇒ Object
13 14 15 16 17 18 |
# File 'lib/octo_merge/interactive_pull_requests.rb', line 13 def pull_requests display_pull_requests gets.strip end |