Class: Imap::Backup::CLI::Restore
- Inherits:
-
Thor
- Object
- Thor
- Imap::Backup::CLI::Restore
- Includes:
- Helpers, Thor::Actions
- Defined in:
- lib/imap/backup/cli/restore.rb
Instance Attribute Summary collapse
-
#account_names ⇒ Object
readonly
Returns the value of attribute account_names.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
Instance Method Summary collapse
-
#initialize(email = nil, options) ⇒ Restore
constructor
A new instance of Restore.
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, ) super([]) @email = email @account_names = [:accounts].split(",") if .key?(:accounts) end |
Instance Attribute Details
#account_names ⇒ Object (readonly)
Returns the value of attribute account_names.
7 8 9 |
# File 'lib/imap/backup/cli/restore.rb', line 7 def account_names @account_names end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/imap/backup/cli/restore.rb', line 6 def email @email end |