Method: MintsHelper#get_query_results

Defined in:
lib/mints/helpers/mints_helper.rb

#get_query_results(url, options = nil, use_post = true) ⇒ Object

Get query results.

Method used to give the options to make a ‘post’ or ‘get’ request.

Parameters

url

(String) – Url to make the request.

options

(Hash) – List of Resource collection Options shown above can be used as parameter.

use_post

(Boolean) – Variable to determine if the request is by ‘post’ or ‘get’ functions.



12
13
14
15
16
17
18
# File 'lib/mints/helpers/mints_helper.rb', line 12

def get_query_results(url, options = nil, use_post = true)
  if use_post
    @client.raw('post', "#{url}/query", options)
  else
    @client.raw('get', url, options)
  end
end