class attr's update class values on resource changes