Use cattr_accessor to fix cron cant be read in class_eval