   #
   # @param [ActiveResource::Base] the resource to convert to a resource identifier
   # @return [Object] the resource identifier for the object
-  buildResourceIdentifier = (resource) ->
+  buildResourceIdentifier: (resource) ->
     identifier = { type: resource.klass().queryName }
     if (primaryKeyValue = resource[resource.klass().primaryKey])
       identifier[resource.klass().primaryKey] = primaryKeyValue.toString()

            attributes = _.pick(attributes, changedFields...)
            relationships = _.intersection(relationships, changedFields)

          documentResource['attributes'] = toUnderscored(attributes)
          documentResource['relationships'] = buildResourceRelationships(resource, relationships, onlyChanged)

        documentResource


  #
  # @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'
