Class: Imap::Backup::Mirror
- Inherits:
-
Object
- Object
- Imap::Backup::Mirror
- Defined in:
- lib/imap/backup/mirror.rb,
lib/imap/backup/mirror/map.rb
Defined Under Namespace
Classes: Map
Instance Method Summary collapse
-
#initialize(serializer, folder) ⇒ Mirror
constructor
A new instance of Mirror.
- #run ⇒ Object
Constructor Details
#initialize(serializer, folder) ⇒ Mirror
Returns a new instance of Mirror.
7 8 9 10 |
# File 'lib/imap/backup/mirror.rb', line 7 def initialize(serializer, folder) @serializer = serializer @folder = folder end |
Instance Method Details
#run ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/imap/backup/mirror.rb', line 12 def run ensure_destination_folder delete_destination_only_emails update_flags append_emails map.save end |