Method: FileboundClient::Client#get

Defined in:
lib/filebound_client.rb

#get(url, query_params = nil) ⇒ Hash

Executes a GET request on the current Filebound client session expecting JSON in the body of the response

Parameters:

  • url (String)

    the resource url to request

  • query_params (Hash) (defaults to: nil)

    the optional query parameters to pass to the GET request

Returns:

  • (Hash)

    the JSON parsed hash of the response body



44
45
46
# File 'lib/filebound_client.rb', line 44

def get(url, query_params = nil)
  JSON.parse(perform('get', url, query: query_params), symbolize_names: true, quirks_mode: true)
end