Class: Imap::Backup::Setup::Account::Header
- Inherits:
-
Object
- Object
- Imap::Backup::Setup::Account::Header
- Defined in:
- lib/imap/backup/setup/account/header.rb
Overview
Displays the header to the account modification menu
Instance Method Summary collapse
-
#initialize(menu:, account:) ⇒ Header
constructor
A new instance of Header.
-
#run ⇒ void
Displays the header.
Constructor Details
#initialize(menu:, account:) ⇒ Header
Returns a new instance of Header.
15 16 17 18 |
# File 'lib/imap/backup/setup/account/header.rb', line 15 def initialize(menu:, account:) @menu = @account = account end |
Instance Method Details
#run ⇒ void
This method returns an undefined value.
Displays the header
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/imap/backup/setup/account/header.rb', line 23 def run rows = [ email, password, server, , mode, path, folders, multi_fetch, reset_seen_flags_after_fetch ].compact .header = <<~HEADER.chomp #{helpers.title_prefix} Account#{modified_flag} #{format_rows(rows)} Choose an action HEADER end |