summaryrefslogblamecommitdiffstats
path: root/test_pdf.rb
blob: 625926a2012715a2ad90a5b7f74a59c666970807 (plain) (tree)












































                                                                       
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!'
    }
  }
}

generate_pdf_for Band.new(params)