require_relative 'lib/registration' require 'prawn' params = { 'name' => 'Imbalance', 'city' => 'Oslo', 'website' => 'http://imbalance.no', 'label' => 'Calculated Imperfection', 'shortbio' => 'Thrash metal from Norway', 'contact' => { 'name' => 'Harald Eilertsen', 'addr' => "Gamleveien 13\n1289 Snufstad", 'phone' => '98765432', 'email' => 'mail@imbalance.no' }, 'members' => { '1' => { 'name' => 'Harald Eilertsen', 'instrument' => 'Bass/Vocals', 'age' => '' }, '2' => { 'name' => 'Welle', 'instrument' => 'Drums', 'age' => '' }, '3' => { 'name' => 'Thormodr', 'instrument' => 'Guitar', 'age' => '' } }, '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)