Class: Net::IMAP::Address
- Inherits:
-
Struct
- Object
- Struct
- Net::IMAP::Address
- Defined in:
- lib/net/imap/response_data.rb
Overview
Net::IMAP::Address represents an electronic mail address, which has been parsed into its component parts by the server. Address objects are returned within Envelope fields.
Group syntax
When the #host field is nil
, this is a special form of address structure that indicates the [RFC5322] group syntax. If the #mailbox name field is also nil
, this is an end-of-group marker (semicolon in RFC-822 syntax). If the #mailbox name field is non-NIL
, this is the start of a group marker, and the mailbox #name field holds the group name phrase.
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#mailbox ⇒ Object
Returns the value of attribute mailbox.
-
#name ⇒ Object
Returns the value of attribute name.
-
#route ⇒ Object
Returns the value of attribute route.
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
703 704 705 |
# File 'lib/net/imap/response_data.rb', line 703 def host @host end |
#mailbox ⇒ Object
Returns the value of attribute mailbox
703 704 705 |
# File 'lib/net/imap/response_data.rb', line 703 def mailbox @mailbox end |
#name ⇒ Object
Returns the value of attribute name
703 704 705 |
# File 'lib/net/imap/response_data.rb', line 703 def name @name end |
#route ⇒ Object
Returns the value of attribute route
703 704 705 |
# File 'lib/net/imap/response_data.rb', line 703 def route @route end |