require_relative 'lib/registration'
require 'prawn'
params = {
'name' => 'Imbalance',
'city' => 'Oslo',
'website' => 'http://imbalance.no',
'label' => 'Calculated Imperfection',
'shortbio' => 'Thrash metal from Norway',
'members' => "Harald Eilertsen, Bass/Vocals\nWelle, Drums\nThormodr, Guitar",
'contact' => {
'name' => 'Harald Eilertsen',
'addr' => "Gamleveien 13\n1289 Snufstad",
'phone' => '98765432',
'email' => 'mail@imbalance.no'
},
'songs' => {
'1' => {
'title' => 'Bestial by Nature',
'time' => '02:80',
'isrc' => '',
'performers' => "Harald Eilertsen\nThormod Steinert\nLars Welle",
'composers' => "Harald Eilertsen\nThormod Steinert",
'notes' => 'Rævrukkje rum kjurr!'
},
'2' => {
'title' => 'The Prophecy',
'time' => '06:40',
'isrc' => 'NO-2GC-12010001-1',
'performers' => "Harald Eilertsen\nThormod Steinert\nLars Welle",
'composers' => "Harald Eilertsen\nThormod Steinert",
'notes' => 'Ulven kjæm!'
}
}
}
generate_pdf_for(Band.new(params), "output.pdf")