Metonymy is a poetic device in which a thing is not called using its name, but rather with a similar concept. An example would be if you said "The white house declared" and ti is metonymy because it wasn't the white house who declared but rather the people who work in the white house. Apply this logic to the lines you have since you didn't provide any.