Class: Fyodor::StatsPrinter

Inherits:
Object
  • Object
show all
Includes:
Strings
Defined in:
lib/fyodor/stats_printer.rb

Constant Summary

Constants included from Strings

Fyodor::Strings::PLURAL, Fyodor::Strings::SINGULAR

Instance Method Summary collapse

Constructor Details

#initialize(library) ⇒ StatsPrinter

Returns a new instance of StatsPrinter.



7
8
9
# File 'lib/fyodor/stats_printer.rb', line 7

def initialize(library)
  @library = library
end

Instance Method Details



11
12
13
14
15
16
# File 'lib/fyodor/stats_printer.rb', line 11

def print
  num_books
  rejected
  types
  pretty_output
end