diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-04 16:09:29 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-04 16:09:29 +0200 |
commit | ff8c65d1c8969b8521ea54765c9e75bd764d516b (patch) | |
tree | 51c65576b930ce4a2652b5d11e7abf8c574fda27 /lib/song.rb | |
parent | b04e6f3d6dd3ec5ed2d47f700c9e62f7da5efd32 (diff) | |
download | norsk-urskog-registrations-ff8c65d1c8969b8521ea54765c9e75bd764d516b.tar.gz norsk-urskog-registrations-ff8c65d1c8969b8521ea54765c9e75bd764d516b.tar.bz2 norsk-urskog-registrations-ff8c65d1c8969b8521ea54765c9e75bd764d516b.zip |
Add submitted songs to PDF
Diffstat (limited to 'lib/song.rb')
-rw-r--r-- | lib/song.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/song.rb b/lib/song.rb index e20b5b8..93172f2 100644 --- a/lib/song.rb +++ b/lib/song.rb @@ -1,11 +1,12 @@ class Song - attr_reader :title, :time, :composers, :performers, :notes + attr_reader :title, :time, :isrc, :composers, :performers, :notes def initialize(params) @title = params['title'] @time = params['time'] - @composers = params['composers'] - @performers = params['performers'] + @isrc = params['isrc'] + @composers = params['composers'].split("\n") + @performers = params['performers'].split("\n") @notes = params['notes'] end |