Bookcase - Shading Switch 

Maya's ShadingSwitch nodes are very handy for situations when you have a scene that has many objects that need assigning different textures, such as a bookcase full of books. It enables you to assign different textures to the same shader, saving you time when changing shader attributes because the same shader is assigned to all of the objects. 

A bookcase with hundreds of books. An ideal situation for Maya's Shading Switch node

Colored ramps assigned to different book models using the Maya TripleShadingSwitch node

Multiple colored ramp textures connected to the same Standard Surface shader and a Triple Shading Switch node

An alternative method to assign different colors to different books would be to use the User Data node.