Class: Groonga::Command::TableTokenize

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

Overview

A command class that represents table_tokenize command.

Since:

  • 1.1.0

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.1.0



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

def command_name
  "table_tokenize"
end

.parameter_namesObject

Since:

  • 1.1.0



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

def parameter_names
  [
    :table,
    :string,
    :flags,
    :mode,
  ]
end

Instance Method Details

#flagsArray<String>

Returns An array of flag specified in flags parameter value. This array is extracted by parsing flags parameter value. If flags parameter value is nil or empty, an empty array is returned.

Returns:

  • (Array<String>)

    An array of flag specified in flags parameter value. This array is extracted by parsing flags parameter value. If flags parameter value is nil or empty, an empty array is returned.

Since:

  • 1.1.0



62
63
64
# File 'lib/groonga/command/table-tokenize.rb', line 62

def flags
  @flags ||= flags_value(:flags)
end

#modeString

Returns mode parameter value.

Returns:

  • (String)

    mode parameter value.

Since:

  • 1.1.0



69
70
71
# File 'lib/groonga/command/table-tokenize.rb', line 69

def mode
  self[:mode]
end

#stringString

Returns string parameter value.

Returns:

  • (String)

    string parameter value.

Since:

  • 1.1.0



52
53
54
# File 'lib/groonga/command/table-tokenize.rb', line 52

def string
  self[:string]
end

#tableString

Returns table parameter value.

Returns:

  • (String)

    table parameter value.

Since:

  • 1.1.0



45
46
47
# File 'lib/groonga/command/table-tokenize.rb', line 45

def table
  self[:table]
end