Class: Groonga::Client::Request::Select::OutputColumnsParameter
- Inherits:
-
ValuesParameter
- Object
- ValuesParameter
- Groonga::Client::Request::Select::OutputColumnsParameter
- Defined in:
- lib/groonga/client/request/select.rb
Instance Method Summary collapse
-
#initialize(prefix, output_columns) ⇒ OutputColumnsParameter
constructor
A new instance of OutputColumnsParameter.
- #to_parameters ⇒ Object
Constructor Details
#initialize(prefix, output_columns) ⇒ OutputColumnsParameter
Returns a new instance of OutputColumnsParameter.
852 853 854 |
# File 'lib/groonga/client/request/select.rb', line 852 def initialize(prefix, output_columns) super([:"#{prefix}output_columns"], output_columns) end |
Instance Method Details
#to_parameters ⇒ Object
856 857 858 859 860 861 862 863 864 865 866 |
# File 'lib/groonga/client/request/select.rb', line 856 def to_parameters parameters = super @names.each do |name| output_columns = parameters[name] if output_columns and output_columns.include?("(") parameters[:command_version] = "2" break end end parameters end |