def build_link_type_map(data)
      data["links"].each_with_object({}) do |(key, value), obj|
        association = key.split(".").last
        obj[association] = value["type"].pluralize
      end
    end
def build_link_type_map(data)
      data["links"].each_with_object({}) do |(key, value), obj|
        association = key.split(".").last
        obj[association] = value["type"].pluralize
      end
    end
Builds a map to translate references to types

 eg.
 { "author" => "users", "comments" => "comments" }