Class: EasyIMAP::Folder
- Inherits:
-
Object
- Object
- EasyIMAP::Folder
- Defined in:
- lib/easy_imap/folder.rb
Overview
A Folder on the IMAP server.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
the name of the folder.
Instance Method Summary collapse
-
#folders ⇒ Object
An array of folders in this folder.
-
#initialize(conn, name, delim) ⇒ Folder
constructor
Creates an instance representing a folder with
name
, on the server connectionconn
, with the folder delimiterdelim
. -
#messages ⇒ Object
An array of messages in this folder.
Constructor Details
#initialize(conn, name, delim) ⇒ Folder
Creates an instance representing a folder with name
, on the server connection conn
, with the folder delimiter delim
.
Normally this class is only instantiated internally.
11 12 13 14 15 16 |
# File 'lib/easy_imap/folder.rb', line 11 def initialize(conn, name, delim) @conn = conn @full_name = name @name = name.split(delim).last @delim = delim end |
Instance Attribute Details
#name ⇒ Object (readonly)
the name of the folder.
5 6 7 |
# File 'lib/easy_imap/folder.rb', line 5 def name @name end |