Class: Groonga::Command::TableTokenize
- Defined in:
- lib/groonga/command/table-tokenize.rb
Overview
A command class that represents table_tokenize
command.
Instance Attribute Summary
Attributes inherited from Base
#arguments, #command_name, #original_format, #original_source, #path_prefix
Class Method Summary collapse
Instance Method Summary collapse
-
#flags ⇒ Array<String>
An array of flag specified in
flags
parameter value. -
#mode ⇒ String
mode
parameter value. -
#string ⇒ String
string
parameter value. -
#table ⇒ String
table
parameter value.
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_name ⇒ Object
26 27 28 |
# File 'lib/groonga/command/table-tokenize.rb', line 26 def command_name "table_tokenize" end |
.parameter_names ⇒ Object
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
#flags ⇒ Array<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.
62 63 64 |
# File 'lib/groonga/command/table-tokenize.rb', line 62 def flags @flags ||= flags_value(:flags) end |
#mode ⇒ String
Returns mode
parameter value.
69 70 71 |
# File 'lib/groonga/command/table-tokenize.rb', line 69 def mode self[:mode] end |
#string ⇒ String
Returns string
parameter value.
52 53 54 |
# File 'lib/groonga/command/table-tokenize.rb', line 52 def string self[:string] end |
#table ⇒ String
Returns table
parameter value.
45 46 47 |
# File 'lib/groonga/command/table-tokenize.rb', line 45 def table self[:table] end |