Class: Imap::Backup::Setup::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, account, highline) ⇒ Account

Returns a new instance of Account.



7
8
9
# File 'lib/imap/backup/setup/account.rb', line 7

def initialize(config, , highline)
  super
end

Instance Attribute Details

#account ⇒ Object

Returns the value of attribute account

Returns:

  • (Object) —

    the current value of account



6
7
8
# File 'lib/imap/backup/setup/account.rb', line 6

def 
  @account
end

#config ⇒ Object

Returns the value of attribute config

Returns:

  • (Object) —

    the current value of config



6
7
8
# File 'lib/imap/backup/setup/account.rb', line 6

def config
  @config
end

#highline ⇒ Object

Returns the value of attribute highline

Returns:

  • (Object) —

    the current value of highline



6
7
8
# File 'lib/imap/backup/setup/account.rb', line 6

def highline
  @highline
end

Instance Method Details

#run ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/imap/backup/setup/account.rb', line 11

def run
  catch :done do
    loop do
      Kernel.system("clear")
      create_menu
    end
  end
end