Class: Imap::Backup::CLI::Mirror
- Inherits:
-
Thor
- Object
- Thor
- Imap::Backup::CLI::Mirror
- Includes:
- Thor::Actions
- Defined in:
- lib/imap/backup/cli/mirror.rb
Instance Attribute Summary collapse
-
#destination_email ⇒ Object
readonly
Returns the value of attribute destination_email.
-
#destination_prefix ⇒ Object
readonly
Returns the value of attribute destination_prefix.
-
#source_email ⇒ Object
readonly
Returns the value of attribute source_email.
-
#source_prefix ⇒ Object
readonly
Returns the value of attribute source_prefix.
Instance Method Summary collapse
-
#initialize(source_email, destination_email, destination_prefix: "", source_prefix: "") ⇒ Mirror
constructor
A new instance of Mirror.
Constructor Details
#initialize(source_email, destination_email, destination_prefix: "", source_prefix: "") ⇒ Mirror
Returns a new instance of Mirror.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/imap/backup/cli/mirror.rb', line 12 def initialize( source_email, destination_email, destination_prefix: "", source_prefix: "" ) super([]) @destination_email = destination_email @destination_prefix = destination_prefix @source_email = source_email @source_prefix = source_prefix end |
Instance Attribute Details
#destination_email ⇒ Object (readonly)
Returns the value of attribute destination_email.
7 8 9 |
# File 'lib/imap/backup/cli/mirror.rb', line 7 def destination_email @destination_email end |
#destination_prefix ⇒ Object (readonly)
Returns the value of attribute destination_prefix.
8 9 10 |
# File 'lib/imap/backup/cli/mirror.rb', line 8 def destination_prefix @destination_prefix end |
#source_email ⇒ Object (readonly)
Returns the value of attribute source_email.
9 10 11 |
# File 'lib/imap/backup/cli/mirror.rb', line 9 def source_email @source_email end |
#source_prefix ⇒ Object (readonly)
Returns the value of attribute source_prefix.
10 11 12 |
# File 'lib/imap/backup/cli/mirror.rb', line 10 def source_prefix @source_prefix end |