So, if the Twitter client is used directly from the twitter module, the bearer token will not persist as the client is re-initialized if the options.hash does not match the client hash.  The last 3 lines can be simplified to:

    Twitter.bearer_token = @bearer_token if Twitter.instance_variable_get('@client')