Class: Pgchief::Command::Base
- Inherits:
-
Object
- Object
- Pgchief::Command::Base
- Defined in:
- lib/pgchief/command/base.rb
Overview
Base class for commands
Direct Known Subclasses
DatabaseBackup, DatabaseCreate, DatabaseDrop, DatabaseList, DatabasePrivilegesGrant, DatabaseRestore, QuickBackup, QuickRestore, RetrieveConnectionString, UserCreate, UserDrop, UserList
Instance Attribute Summary collapse
-
#conn ⇒ Object
readonly
Returns the value of attribute conn.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(*params) ⇒ Base
constructor
A new instance of Base.
Constructor Details
Instance Attribute Details
#conn ⇒ Object (readonly)
Returns the value of attribute conn.
11 12 13 |
# File 'lib/pgchief/command/base.rb', line 11 def conn @conn end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
11 12 13 |
# File 'lib/pgchief/command/base.rb', line 11 def params @params end |
Class Method Details
.call(*params) ⇒ Object
7 8 9 |
# File 'lib/pgchief/command/base.rb', line 7 def self.call(*params) new(*params).call end |
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'lib/pgchief/command/base.rb', line 20 def call raise NotImplementedError end |