   delete: (url, resourceData, options = {}) ->
     data =
       if resourceData?
-        { data: buildResourceDocument(resourceData: resourceData, onlyResourceIdentifiers: true) }
+        { data: this.buildResourceDocument(resourceData: resourceData, onlyResourceIdentifiers: true) }
       else
         {}
 

  #
  # @param [Object] sortObject the object defining sorting columns
  # @return [String] a JSON API formatted string that defines sorting
  buildSortList = (sortObject) ->
    output = []
    for column, dir of sortObject
      if dir == 'asc'

  #
  # 1. Go through each key of the object, map its array of fields to underscored fields
  # 2. Take the mapped array of fields and join them, replacing the value of the key with the joined string
  buildSparseFieldset: (fields) ->
    _.mapObject fields, (fieldArray) ->
      _.map(fieldArray, (f) -> s.underscored(f)).join()

