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, #connection, #each_connection, included, #load_config

Constructor Details

#initialize(email, options) ⇒ Stats

Returns a new instance of Stats.



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

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

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



14
15
16
# File 'lib/imap/backup/cli/stats.rb', line 14

def email
  @email
end

#optionsObject (readonly)

Returns the value of attribute options.



15
16
17
# File 'lib/imap/backup/cli/stats.rb', line 15

def options
  @options
end