class MailXoauth2::ImapXoauth2Authenticator
Public Class Methods
new(user, oauth2_token)
click to toggle source
user
is an email address: roger@gmail.com oauth2_token
is the OAuth2 token
# File lib/mail_xoauth2/imap_xoauth2_authenticator.rb, line 15 def initialize(user, oauth2_token) @user = user @oauth2_token = oauth2_token end
Public Instance Methods
process(_data)
click to toggle source
# File lib/mail_xoauth2/imap_xoauth2_authenticator.rb, line 7 def process(_data) build_oauth2_string(@user, @oauth2_token) end