Class: Net::IMAP::XOAuthAuthenticator
- Inherits:
-
Object
- Object
- Net::IMAP::XOAuthAuthenticator
- Defined in:
- lib/gmail-oauth.rb
Instance Method Summary collapse
-
#initialize(email_address, opts = {}) ⇒ XOAuthAuthenticator
constructor
A new instance of XOAuthAuthenticator.
- #process(s) ⇒ Object
Constructor Details
#initialize(email_address, opts = {}) ⇒ XOAuthAuthenticator
Returns a new instance of XOAuthAuthenticator.
10 11 12 13 |
# File 'lib/gmail-oauth.rb', line 10 def initialize(email_address, opts = {}) @email_address = email_address @opts = opts end |
Instance Method Details
#process(s) ⇒ Object
15 16 17 |
# File 'lib/gmail-oauth.rb', line 15 def process(s) GmailOAuth::Client.new(@email_address, @opts).xoauth_string end |