Class: Net::IMAP::FetchData
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/net/imap/fetch_data.rb |
Overview
FetchData represents the contents of a FETCH response.
#fetch, #uid_fetch, #store, and
#uid_store all return arrays of FetchData objects, except when
the UIDONLY extension is enabled.
See FetchStruct documentation for a list of standard message attributes.
Instance Method Summary
-
#attr ⇒ Hash
Each key specifies a message attribute, and the value is the corresponding data item.
-
#seqno ⇒ Integer
The message sequence number.
Instance Method Details
#attr ⇒ Hash
Each key specifies a message attribute, and the value is the corresponding data item. Standard data items have corresponding accessor methods. The definitions of each attribute type is documented on its accessor.
See FetchStruct documentation for message attribute accessors.
[NOTE:] #seqno is not a message attribute.
# File 'lib/net/imap/fetch_data.rb', line 535
rdoc_method :method: attr
#seqno ⇒ Integer
The message sequence number.
[NOTE:] This is not the same as the unique identifier (UID), not even for the Net::IMAP#uid_fetch result. The UID is available from #uid, if it was returned.
[NOTE:] UIDFetchData will raise a NoMethodError.
# File 'lib/net/imap/fetch_data.rb', line 521
rdoc_method :method: seqno