In synecdoche, a part represents the whole, as in
"All hands on deck,"
where hands refers
to sailors.