Topic: How to check if Twitter is online with the Twitter gem

Twitter was offline an hour ago and as I'm using the Twitter gem, it was giving my application a hard time loading in.
I'm wondering how to check if Twitter is online before I query my public twitter-timeline. I see there are some error classes in the gem, but I don't know exactly how to use them.

Thanks !