Class: DBA::Command
- Inherits:
-
Object
- Object
- DBA::Command
- Defined in:
- lib/dba/command.rb
Direct Known Subclasses
Diff, Dump, Load, Pull, RowCommand, Sample, Select, TableCommand, Tables
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(database) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(database) ⇒ Command
Returns a new instance of Command.
2 3 4 |
# File 'lib/dba/command.rb', line 2 def initialize(database) self.database = database end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
6 7 8 |
# File 'lib/dba/command.rb', line 6 def database @database end |
#table_name ⇒ Object
Returns the value of attribute table_name.
8 9 10 |
# File 'lib/dba/command.rb', line 8 def table_name @table_name end |