Updates docs to use getter methods.

Continuing from #1892
I use single quotes in my own apps, but it seems like our docs mostly use double quotes, so I tried to make it consistent.