Class: Groonga::Command::TableRemove

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/command/table-remove.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

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_nameObject



23
24
25
# File 'lib/groonga/command/table-remove.rb', line 23

def command_name
  "table_remove"
end

.parameter_namesObject



27
28
29
30
31
32
# File 'lib/groonga/command/table-remove.rb', line 27

def parameter_names
  [
    :name,
    :dependent,
  ]
end

Instance Method Details

#dependent?Boolean

Returns Whether the dependent objects of the table are also removed or not.

Returns:

  • (Boolean)

    Whether the dependent objects of the table are also removed or not.

Since:

  • 1.1.8



48
49
50
# File 'lib/groonga/command/table-remove.rb', line 48

def dependent?
  self[:dependent] != "no"
end

#nameString

Returns The table name to be removed.

Returns:

  • (String)

    The table name to be removed.

Since:

  • 1.1.8



40
41
42
# File 'lib/groonga/command/table-remove.rb', line 40

def name
  self[:name]
end