Class: Ncn::Command::Base
- Inherits:
-
Object
- Object
- Ncn::Command::Base
- Defined in:
- lib/ncn/command/base.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
-
#initialize(repository:, params: nil) ⇒ Base
constructor
A new instance of Base.
- #perform ⇒ Object
Constructor Details
#initialize(repository:, params: nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/ncn/command/base.rb', line 8 def initialize(repository:, params: nil) @repository = repository @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/ncn/command/base.rb', line 4 def params @params end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
4 5 6 |
# File 'lib/ncn/command/base.rb', line 4 def repository @repository end |
Instance Method Details
#perform ⇒ Object
13 14 15 |
# File 'lib/ncn/command/base.rb', line 13 def perform raise "not implemented" end |