synecdoche

A figure of speech where a part is made to represent the whole or vice-versa.  See here.