Method: AboutYou::SDK::Query#query_string

Defined in:
lib/AboutYou/query.rb

#query_stringObject

the methods builds the complete query string which represents the body of the api call

  • Returns :

    • JSON-String containing all queries which need to be executed



223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/AboutYou/query.rb', line 223

def query_string
  result = []

  ghost_query.each do |ghost_query|
    result.push(
      ghost_query[ghost_query.keys[0]]
    ) if ghost_query.is_a?(Hash)
  end

  self.all_query = result + query

  (result + query).to_json
end