Class: Groonga::Command::Normalize
- Defined in:
- lib/groonga/command/normalize.rb
Overview
A command class that represents normalize
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 flags specified in
flags
parameter value. -
#normalizer ⇒ String
normalizer
parameter value. -
#string ⇒ String
string
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
28 29 30 |
# File 'lib/groonga/command/normalize.rb', line 28 def command_name "normalize" end |
.parameter_names ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/groonga/command/normalize.rb', line 32 def parameter_names [ :normalizer, :string, :flags, ] end |
Instance Method Details
#flags ⇒ Array<String>
Returns An array of flags 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.
61 62 63 |
# File 'lib/groonga/command/normalize.rb', line 61 def flags @flags ||= flags_value(:flags) end |
#normalizer ⇒ String
Returns normalizer
parameter value.
45 46 47 |
# File 'lib/groonga/command/normalize.rb', line 45 def normalizer self[:normalizer] end |
#string ⇒ String
Returns string
parameter value.
51 52 53 |
# File 'lib/groonga/command/normalize.rb', line 51 def string self[:string] end |