Class: PgEventstore::CLI::Commands::BaseCommand
- Inherits:
-
Object
- Object
- PgEventstore::CLI::Commands::BaseCommand
- Defined in:
- lib/pg_eventstore/cli/commands/base_command.rb
Direct Known Subclasses
Defined Under Namespace
Modules: BaseCommandActions
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#call ⇒ Integer
Exit code.
-
#initialize(options) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
Constructor Details
#initialize(options) ⇒ BaseCommand
Returns a new instance of BaseCommand.
34 35 36 |
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 34 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
31 32 33 |
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 31 def @options end |
Class Method Details
.inherited(klass) ⇒ Object
25 26 27 28 |
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 25 def inherited(klass) super klass.prepend BaseCommandActions end |
Instance Method Details
#call ⇒ Integer
Returns exit code.
39 40 41 |
# File 'lib/pg_eventstore/cli/commands/base_command.rb', line 39 def call raise NotImplementedError end |