Berichtsheft

Berichtsheft is a ruby library that helps apprentices working in Germany to create weekly reports. The default document template has been approved by IHK München / Oberbayern.

Installation

$ gem install berichtsheft

Usage

require 'berichtsheft'

# id_for_week is a natural number that represents the workweek.
# The second argument is the file path where the generated documents are saved.
settings = Berichtsheft::Settings.new(id_for_week, '/path/to/file/')

employee = Berichtsheft::Employee.new('first name', 'last name', 'department')

# Expected order for values in CSV files:
# id_for_week,description_for_activity,date(YYYY-MM-DD),duration
parser = Berichtsheft::CSVParser.new('/path/to/file')

activities = Berichtsheft::Activities.new(parser.data, settings.id_for_week)

document = Berichtsheft::Document.new(user, activities, settings)

document.generate

Contact

Volkan Edis

License

Berichtsheft is available under the GPLv3. See the LICENSE file for more information.