class Net::IMAP::XOauth2Authenticator
Public Class Methods
new(user, oauth2_token, **_)
click to toggle source
# File net-imap-0.3.7/lib/net/imap/authenticators/xoauth2.rb, line 10 def initialize(user, oauth2_token, **_) @user = user @oauth2_token = oauth2_token end
Public Instance Methods
process(_data)
click to toggle source
# File net-imap-0.3.7/lib/net/imap/authenticators/xoauth2.rb, line 4 def process(_data) build_oauth2_string(@user, @oauth2_token) end
Private Instance Methods
build_oauth2_string(user, oauth2_token)
click to toggle source
# File net-imap-0.3.7/lib/net/imap/authenticators/xoauth2.rb, line 15 def build_oauth2_string(user, oauth2_token) format("user=%s\1auth=Bearer %s\1\1", user, oauth2_token) end