Class: Groonga::Command::Truncate

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/command/truncate.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?, #name, #output_type, #request_id, #to_command_format, #to_elasticsearch_format, #to_s, #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/truncate.rb', line 23

def command_name
  "truncate"
end

.parameter_namesObject



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

def parameter_names
  [
    :target_name,
    :table,
  ]
end

Instance Method Details

#target_nameObject



37
38
39
# File 'lib/groonga/command/truncate.rb', line 37

def target_name
  @target_name ||= self[:target_name] || self[:table]
end