I'm pretty new to using APIs, but I'm struggling from the minimal documentation. I'm following the example, and in the section of code below, I figured out what CLIENT_ID_FROM_API_CONSOLE should be replaced with but, I have no idea what CLIENT_SECRET and YOUR_REDIRECT_URI should be replaced with.
client.authorization.client_id = 'CLIENT_ID_FROM_API_CONSOLE'
client.authorization.client_secret = 'CLIENT_SECRET'
client.authorization.redirect_uri = 'YOUR_REDIRECT_URI'
This has been addressed in the document being written, by explaining that the best practice is to use client_secrets.json.
Check the updated samples in this pull request for an idea of how to use client secrets: google/google-api-ruby-client-samples#3
This is live at https://developers.google.com/api-client-library/ruby