Class: Groonga::Command::QueryExpand
- Defined in:
- lib/groonga/command/query-expand.rb
Overview
A command class that represents query_expand
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
-
#allow_column? ⇒ Boolean
true
if"ALLOW_COLUMN"
is specified in #flags,false
otherwise. -
#allow_leading_not? ⇒ Boolean
true
if"ALLOW_LEADING_NOT"
is specified in #flags,false
otherwise. -
#allow_pragma? ⇒ Boolean
true
if"ALLOW_PRAGMA"
is specified in #flags,false
otherwise. -
#allow_update? ⇒ Boolean
true
if"ALLOW_UPDATE"
is specified in #flags,false
otherwise. -
#expander ⇒ String
expander
parameter value. -
#flags ⇒ Array<String>
flags
parameter value. -
#none? ⇒ Boolean
true
if"NONE"
is specified in #flags,false
otherwise. -
#query ⇒ String
query
parameter value.
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_name ⇒ Object
26 27 28 |
# File 'lib/groonga/command/query-expand.rb', line 26 def command_name "query_expand" end |
.parameter_names ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/groonga/command/query-expand.rb', line 30 def parameter_names [ :expander, :query, :flags, ] end |
Instance Method Details
#allow_column? ⇒ Boolean
Returns true
if "ALLOW_COLUMN"
is specified in
#flags, false
otherwise.
74 75 76 |
# File 'lib/groonga/command/query-expand.rb', line 74 def allow_column? flags.include?("ALLOW_COLUMN") end |
#allow_leading_not? ⇒ Boolean
Returns true
if "ALLOW_LEADING_NOT"
is specified in
#flags, false
otherwise.
90 91 92 |
# File 'lib/groonga/command/query-expand.rb', line 90 def allow_leading_not? flags.include?("ALLOW_LEADING_NOT") end |
#allow_pragma? ⇒ Boolean
Returns true
if "ALLOW_PRAGMA"
is specified in
#flags, false
otherwise.
66 67 68 |
# File 'lib/groonga/command/query-expand.rb', line 66 def allow_pragma? flags.include?("ALLOW_PRAGMA") end |
#allow_update? ⇒ Boolean
Returns true
if "ALLOW_UPDATE"
is specified in
#flags, false
otherwise.
82 83 84 |
# File 'lib/groonga/command/query-expand.rb', line 82 def allow_update? flags.include?("ALLOW_UPDATE") end |
#expander ⇒ String
Returns expander
parameter value.
44 45 46 |
# File 'lib/groonga/command/query-expand.rb', line 44 def self[:expander] end |
#flags ⇒ Array<String>
Returns flags
parameter value.
58 59 60 |
# File 'lib/groonga/command/query-expand.rb', line 58 def flags @flags ||= flags_value(:flags) end |
#none? ⇒ Boolean
Returns true
if "NONE"
is specified in #flags,
false
otherwise.
98 99 100 |
# File 'lib/groonga/command/query-expand.rb', line 98 def none? flags.include?("NONE") end |
#query ⇒ String
Returns query
parameter value.
51 52 53 |
# File 'lib/groonga/command/query-expand.rb', line 51 def query self[:query] end |