lib/jiratk/oautherizer.rb
# Ensure valid credentials, either by restoring from the saved credentials
# files or intitiating an OAuth2 authorization. If authorization is required,
# the user's default browser will be launched to approve the request.
#
# @return [Google::Auth::UserRefreshCredentials] OAuth2 credentials
Ensure valid credentials, either by restoring from the saved credentials
files or intitiating an OAuth2 authorization. If authorization is required,
the user's default browser will be launched to approve the request.
Ensure valid credentials either by restoring from the saved credentials files or intitiating an OAuth2 authorization . If authorization is required the user ' s default browser will be launched to approve the request .
def authorize
    credentials = authorizer.get_credentials(user_id)
    save_credentials if credentials.nil?
    credentials
  end
def authorize credentials = authorizer . get_credentials ( user_id ) save_credentials if credentials . nil? credentials end
Ensure valid credentials, either by restoring from the saved credentials
files or intitiating an OAuth2 authorization.
Ensure valid credentials either by restoring from the saved credentials files or intitiating an OAuth2 authorization .
# what we really want here is # credentials || save_credentials
None
Google::Auth::UserRefreshCredentials