module Net::IMAP::SASL::ProtocolAdapters::Generic
This API is experimental, and may change.
Public Instance Methods
cancel_response()
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 17 def cancel_response; "*" end
command_name()
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 10 def command_name; "AUTHENTICATE" end
decode(string)
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 16 def decode(string) string.unpack1("m0") end
encode(string)
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 15 def encode(string) [string].pack("m0") end
encode_ir(string)
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 14 def encode_ir(string) string.empty? ? "=" : encode(string) end
host()
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 12 def host; client.host end
port()
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 13 def port; client.port end
service()
click to toggle source
# File net-imap-0.4.11/lib/net/imap/sasl/protocol_adapters.rb, line 11 def service; raise "Implement in subclass or module" end