Class: Net::IMAP::Address

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/imap/response_data.rb

Overview

Net::IMAP::Address represents electronic mail addresses.

Fields:

name

Returns the phrase from [RFC-822] mailbox.

route

Returns the route from [RFC-822] route-addr.

mailbox

nil indicates end of [RFC-822] group. If non-nil and host is nil, returns [RFC-822] group name. Otherwise, returns [RFC-822] local-part.

host

nil indicates [RFC-822] group syntax. Otherwise, returns [RFC-822] domain name.

Instance Attribute Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



323
324
325
# File 'lib/net/imap/response_data.rb', line 323

def host
  @host
end

#mailboxObject

Returns the value of attribute mailbox

Returns:

  • (Object)

    the current value of mailbox



323
324
325
# File 'lib/net/imap/response_data.rb', line 323

def mailbox
  @mailbox
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



323
324
325
# File 'lib/net/imap/response_data.rb', line 323

def name
  @name
end

#routeObject

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



323
324
325
# File 'lib/net/imap/response_data.rb', line 323

def route
  @route
end