Method: SearchmetricsClient::Query#to_h

Defined in:
lib/searchmetrics_client/query.rb

#to_hObject



17
18
19
20
21
# File 'lib/searchmetrics_client/query.rb', line 17

def to_h
  hash = { endpoint: endpoint }
  hash[:params] = params unless params.empty?
  hash
end