Module: Net::IMAP::SASL::ProtocolAdapters::Generic
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/net/imap/sasl/protocol_adapters.rb |
Overview
This API is experimental, and may change.
Instance Method Summary
Instance Method Details
#cancel_response
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 17
def cancel_response; "*" end
#command_name
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 10
def command_name; "AUTHENTICATE" end
#decode(string)
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 16
def decode(string) string.unpack1("m0") end
#encode(string)
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 15
def encode(string) [string].pack("m0") end
#encode_ir(string)
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 14
def encode_ir(string) string.empty? ? "=" : encode(string) end
#host
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 12
def host; client.host end
#port
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 13
def port; client.port end
#service
[ GitHub ]# File 'lib/net/imap/sasl/protocol_adapters.rb', line 11
def service; raise "Implement in subclass or module" end