def process_data(hash)
      Array(hash).map do |hash|
        Resource.new(client, hash, resource_relations, resources_key)
      end
    end
def process_data(hash)
      Array(hash).map do |hash|
        Resource.new(client, hash, resource_relations, resources_key)
      end
    end
Build a Response after a completed request.

 @param client [BookingSync::API::Client] The client that is
   managing the API connection.
 @param res [Faraday::Response] Faraday response object
 Turn parsed contents from an API response into a Resource or
 collection of Resources.

 @param hash [Hash] A Hash of resources parsed from JSON.
 @return [Array] An Array of Resources.