Update core_manual_ruby.md

Update code example to be correct in the set_periodic example