class Net::SMTP::Authenticator
Attributes
              smtp[R]
            
            Public Class Methods
                              auth_class(type)
                              click to toggle source
                            
                            # File net-smtp-0.4.0.1/lib/net/smtp/authenticator.rb, line 12 def self.auth_class(type) Authenticator.auth_classes[type.intern] end
                              auth_classes()
                              click to toggle source
                            
                            # File net-smtp-0.4.0.1/lib/net/smtp/authenticator.rb, line 4 def self.auth_classes @classes ||= {} end
                              auth_type(type)
                              click to toggle source
                            
                            # File net-smtp-0.4.0.1/lib/net/smtp/authenticator.rb, line 8 def self.auth_type(type) Authenticator.auth_classes[type] = self end
                              new(smtp)
                              click to toggle source
                            
                            # File net-smtp-0.4.0.1/lib/net/smtp/authenticator.rb, line 18 def initialize(smtp) @smtp = smtp end
Public Instance Methods
                              base64_encode(str)
                              click to toggle source
                            
                            @param str [String] @return [String] Base64 encoded string
# File net-smtp-0.4.0.1/lib/net/smtp/authenticator.rb, line 40 def base64_encode(str) # expects "str" may not become too long [str].pack('m0') end
                              continue(arg)
                              click to toggle source
                            
                            @param arg [String] message to server @return [String] message from server
# File net-smtp-0.4.0.1/lib/net/smtp/authenticator.rb, line 24 def continue(arg) res = smtp.get_response arg raise res.exception_class.new(res) unless res.continue? res.string.split[1] end
                              finish(arg)
                              click to toggle source
                            
                            @param arg [String] message to server @return [Net::SMTP::Response] response from server
# File net-smtp-0.4.0.1/lib/net/smtp/authenticator.rb, line 32 def finish(arg) res = smtp.get_response arg raise SMTPAuthenticationError.new(res) unless res.success? res end