Update api.rb to use a more RubyMotionesque style