Class: Debtective::Todos::PrintTable

Inherits:
Object
  • Object
show all
Defined in:
lib/debtective/todos/print_table.rb

Overview

Print todos as a table in the stdout

Instance Method Summary collapse

Constructor Details

#initialize(user_name = nil) ⇒ PrintTable

Returns a new instance of PrintTable.

Parameters:

  • user_name (String) (defaults to: nil)

    git user email to filter



10
11
12
# File 'lib/debtective/todos/print_table.rb', line 10

def initialize(user_name = nil)
  @user_name = user_name
end

Instance Method Details

#callDebtective::Todos::List



15
16
17
18
19
# File 'lib/debtective/todos/print_table.rb', line 15

def call
  log_table_headers
  log_table_rows
  list
end