Class: Groonga::Command::TableCopy

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/command/table-copy.rb

Overview

A command class that represents table_copy command.

Since:

  • 1.2.7

Instance Attribute Summary

Attributes inherited from Base

#arguments, #command_name, #original_format, #original_source, #path_prefix

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #[], #[]=, #command_format?, #initialize, #key?, #name, #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_nameObject

Since:

  • 1.2.7



26
27
28
# File 'lib/groonga/command/table-copy.rb', line 26

def command_name
  "table_copy"
end

.parameter_namesObject

Since:

  • 1.2.7



30
31
32
33
34
35
# File 'lib/groonga/command/table-copy.rb', line 30

def parameter_names
  [
    :from_name,
    :to_name,
  ]
end

Instance Method Details

#from_nameString

Returns The source table name.

Returns:

  • (String)

    The source table name.

Since:

  • 1.2.7



43
44
45
# File 'lib/groonga/command/table-copy.rb', line 43

def from_name
  self[:from_name]
end

#to_nameString

Returns The destination table name.

Returns:

  • (String)

    The destination table name.

Since:

  • 1.2.7



50
51
52
# File 'lib/groonga/command/table-copy.rb', line 50

def to_name
  self[:to_name]
end