Class: Imap::Backup::Account::Restore

Inherits:
Object
  • Object
show all
Defined in:
lib/imap/backup/account/restore.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account:) ⇒ Restore

Returns a new instance of Restore.



11
12
13
# File 'lib/imap/backup/account/restore.rb', line 11

def initialize(account:)
  @account = 
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



9
10
11
# File 'lib/imap/backup/account/restore.rb', line 9

def 
  @account
end

Instance Method Details

#runObject



15
16
17
18
19
20
# File 'lib/imap/backup/account/restore.rb', line 15

def run
  serialized_folders = Account::SerializedFolders.new(account: )
  serialized_folders.each do |serializer, folder|
    Uploader.new(folder, serializer).run
  end
end