add attributes method to rack response