Class: Groonga::Command::ColumnRename
- Defined in:
- lib/groonga/command/column-rename.rb
Instance Attribute Summary
Attributes inherited from Base
#arguments, #command_name, #original_format, #original_source, #path_prefix
Class Method Summary collapse
Instance Method Summary collapse
-
#name ⇒ String
The current column name.
-
#new_name ⇒ String
The new column name.
-
#table ⇒ String
The table name of the column.
Methods inherited from Base
#==, #[], #[]=, #command_format?, #initialize, #key?, #output_type, #request_id, #to_command_format, #to_uri_format, #uri_format?
Constructor Details
This class inherits a constructor from Groonga::Command::Base
Class Method Details
.command_name ⇒ Object
23 24 25 |
# File 'lib/groonga/command/column-rename.rb', line 23 def command_name "column_rename" end |
.parameter_names ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/groonga/command/column-rename.rb', line 27 def parameter_names [ :table, :name, :new_name, ] end |
Instance Method Details
#name ⇒ String
Returns The current column name.
48 49 50 |
# File 'lib/groonga/command/column-rename.rb', line 48 def name self[:name] end |
#new_name ⇒ String
Returns The new column name.
55 56 57 |
# File 'lib/groonga/command/column-rename.rb', line 55 def new_name self[:new_name] end |
#table ⇒ String
Returns The table name of the column.
41 42 43 |
# File 'lib/groonga/command/column-rename.rb', line 41 def table self[:table] end |