Not exactly the ratio of protons to electrons, the effective nuclear charges refers to the net charge an electron belonging to shell is experiencing from the nucleus, taking account into 'shielding effect', which cancels out some of the positive charge experienced. It is given by the formula:

where

is the atomic number (number of protons) and

is the number of electrons in the inner shell. Here are some examples:
Consider the the carbon atom, its nucleus of the carbon atom contains 6 protons, and it has 2 electron shells with configuration 2,4. The inner shell has an effective nuclear charge of +6 as there are no further inner electrons. The second shell however has an effective nuclear charge of +4, which is 6 - 2, the two electrons from the inner shell cancels out some of the positive charges in the nucleus.
The effective nuclear charge can be used to explain the periodic trend that as you go towards the right of the periodic table, the atoms get more electronegative and it has a stronger tendency to absorb an electron.