refactor attr_reader(s) into single call