Class: Imap::Backup::CLI::Stats

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

Constant Summary collapse

TEXT_COLUMNS =
[
  {name: :folder, width: 20, alignment: :left},
  {name: :remote, width: 8, alignment: :right},
  {name: :both, width: 8, alignment: :right},
  {name: :local, width: 8, alignment: :right}
].freeze
ALIGNMENT_FORMAT_SYMBOL =
{left: "-", right: " "}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#account, included, #load_config, #requested_accounts

Constructor Details

#initialize(email, options) ⇒ Stats

Returns a new instance of Stats.



22
23
24
25
26
# File 'lib/imap/backup/cli/stats.rb', line 22

def initialize(email, options)
  super([])
  @email = email
  @options = options
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



19
20
21
# File 'lib/imap/backup/cli/stats.rb', line 19

def email
  @email
end

#optionsObject (readonly)

Returns the value of attribute options.



20
21
22
# File 'lib/imap/backup/cli/stats.rb', line 20

def options
  @options
end