diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/band.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/band.rb b/lib/band.rb index 8cd3535..54775f4 100644 --- a/lib/band.rb +++ b/lib/band.rb @@ -9,7 +9,7 @@ class Band def initialize(params = nil) @errors = [] @contact = Contact.new - @members = [] + @members = "" @songs = [] if params @@ -18,15 +18,10 @@ class Band @website = params['website'] @label = params['label'] @short_bio = params['shortbio'] + @members = params['members'] || "" @contact = Contact.new(params['contact']) - if params['members'] - params['members'].each do |k, m| - @members << Member.new(m) - end - end - if params['songs'] params['songs'].each do |k, s| @songs << Song.new(s) |