Class: ZTK::Report

Inherits:
Base
  • Object
show all
Includes:
List, Private, Spreadsheet
Defined in:
lib/ztk/report.rb,
lib/ztk/report/list.rb,
lib/ztk/report/private.rb,
lib/ztk/report/spreadsheet.rb

Overview

Report Class

This class contains tools for generating spreadsheet or key-value list styled output. Report methods are currently meant to be interchangeable; that is one should be able to just switch which method they are calling to change the output type.

The idea here is that everything is auto-sized and simply displayed.

Author:

Defined Under Namespace

Modules: List, Private, Spreadsheet

Instance Method Summary (collapse)

Methods included from Private

#calculate_spreadsheet_width, #format_entry, #format_header, #format_row, #max_spreadsheet_lengths

Methods included from Spreadsheet

#spreadsheet

Methods included from List

#list

Methods inherited from Base

build_config, #config, #direct_log, hash_config, log_and_raise, #log_and_raise

Constructor Details

- (Report) initialize(configuration = {})

Returns a new instance of Report

Parameters:

  • configuration (Hash) (defaults to: {})

    Configuration options hash.



30
31
32
# File 'lib/ztk/report.rb', line 30

def initialize(configuration={})
  super(configuration)
end