Class: GitJump::Actions::Base
- Inherits:
-
Object
- Object
- GitJump::Actions::Base
- Defined in:
- lib/git_jump/actions/base.rb
Overview
Base class for all actions
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config:, database:, repository:, output:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config:, database:, repository:, output:) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 |
# File 'lib/git_jump/actions/base.rb', line 9 def initialize(config:, database:, repository:, output:) @config = config @database = database @repository = repository @output = output end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/git_jump/actions/base.rb', line 7 def config @config end |
#database ⇒ Object (readonly)
Returns the value of attribute database.
7 8 9 |
# File 'lib/git_jump/actions/base.rb', line 7 def database @database end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
7 8 9 |
# File 'lib/git_jump/actions/base.rb', line 7 def output @output end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
7 8 9 |
# File 'lib/git_jump/actions/base.rb', line 7 def repository @repository end |
Instance Method Details
#execute ⇒ Object
16 17 18 |
# File 'lib/git_jump/actions/base.rb', line 16 def execute raise NotImplementedError, "#{self.class} must implement #execute" end |