ca: refactor iBuddy.rb