Class: Imap::Backup::CLI::Restore

Inherits:
Thor
  • Object
show all
Includes:
Helpers, Thor::Actions
Defined in:
lib/imap/backup/cli/restore.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#account, #connection, #each_connection, #symbolized

Constructor Details

#initialize(email = nil, options) ⇒ Restore

Returns a new instance of Restore.



9
10
11
12
13
# File 'lib/imap/backup/cli/restore.rb', line 9

def initialize(email = nil, options)
  super([])
  @email = email
  @account_names = options[:accounts].split(",") if options.key?(:accounts)
end

Instance Attribute Details

#account_namesObject (readonly)

Returns the value of attribute account_names.



7
8
9
# File 'lib/imap/backup/cli/restore.rb', line 7

def 
  @account_names
end

#emailObject (readonly)

Returns the value of attribute email.



6
7
8
# File 'lib/imap/backup/cli/restore.rb', line 6

def email
  @email
end