Class: FlareUp::Command::CreateTable
- Defined in:
- lib/flare_up/command/create_table.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
Attributes inherited from Base
Instance Method Summary collapse
- #get_command ⇒ Object
-
#initialize(*args) ⇒ CreateTable
constructor
A new instance of CreateTable.
Methods inherited from Base
Constructor Details
#initialize(*args) ⇒ CreateTable
Returns a new instance of CreateTable.
7 8 9 10 |
# File 'lib/flare_up/command/create_table.rb', line 7 def initialize(*args) @columns = [] super end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
5 6 7 |
# File 'lib/flare_up/command/create_table.rb', line 5 def columns @columns end |
Instance Method Details
#get_command ⇒ Object
13 14 15 |
# File 'lib/flare_up/command/create_table.rb', line 13 def get_command "CREATE TABLE #{@table_name} #{get_columns} #{@options}" end |