Class: DBA::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/dba/command.rb

Direct Known Subclasses

Diff, Dump, Load, Pull, RowCommand, Sample, Select, TableCommand, Tables

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#databaseObject

Returns the value of attribute database.



6
7
8
# File 'lib/dba/command.rb', line 6

def database
  @database
end

#table_nameObject

Returns the value of attribute table_name.



8
9
10
# File 'lib/dba/command.rb', line 8

def table_name
  @table_name
end