Class: Groonga::Client::Request::OverwriteMerger

Inherits:
ParameterMerger show all
Defined in:
lib/groonga/client/request/generic.rb

Instance Method Summary collapse

Methods inherited from ParameterMerger

#initialize

Constructor Details

This class inherits a constructor from Groonga::Client::Request::ParameterMerger

Instance Method Details

#to_parametersObject



194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/groonga/client/request/generic.rb', line 194

def to_parameters
  if @parameters1.nil?
    if @parameters2.nil?
      {}
    else
      @parameters2.to_parameters
    end
  else
    if @parameters2.nil?
      @parameters1.to_parameters
    else
      @parameters1.to_parameters.merge(@parameters2.to_parameters)
    end
  end
end