Class: OctoMerge::AbstractMerge
- Inherits:
-
Object
- Object
- OctoMerge::AbstractMerge
- Defined in:
- lib/octo_merge/abstract_merge.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pull_requests ⇒ Object
readonly
Returns the value of attribute pull_requests.
-
#working_directory ⇒ Object
readonly
Returns the value of attribute working_directory.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(working_directory:, pull_requests:) ⇒ AbstractMerge
constructor
A new instance of AbstractMerge.
- #run ⇒ Object
Constructor Details
#initialize(working_directory:, pull_requests:) ⇒ AbstractMerge
Returns a new instance of AbstractMerge.
5 6 7 8 |
# File 'lib/octo_merge/abstract_merge.rb', line 5 def initialize(working_directory:, pull_requests:) @working_directory = working_directory @pull_requests = pull_requests end |
Instance Attribute Details
#pull_requests ⇒ Object (readonly)
Returns the value of attribute pull_requests.
3 4 5 |
# File 'lib/octo_merge/abstract_merge.rb', line 3 def pull_requests @pull_requests end |
#working_directory ⇒ Object (readonly)
Returns the value of attribute working_directory.
3 4 5 |
# File 'lib/octo_merge/abstract_merge.rb', line 3 def working_directory @working_directory end |
Class Method Details
.run(*args) ⇒ Object
10 11 12 |
# File 'lib/octo_merge/abstract_merge.rb', line 10 def self.run(*args) new(*args).tap { |merge| merge.run } end |
Instance Method Details
#run ⇒ Object
14 15 16 |
# File 'lib/octo_merge/abstract_merge.rb', line 14 def run fail "NotImplementedYet" end |