From fef7c23736ba0209294c263f9481fa399e19afe3 Mon Sep 17 00:00:00 2001 From: Fombi-Favour Date: Fri, 22 Dec 2023 02:11:56 +0100 Subject: [PATCH] update genre.rb --- classes/genre.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/genre.rb b/classes/genre.rb index c2df007..43fc449 100644 --- a/classes/genre.rb +++ b/classes/genre.rb @@ -5,8 +5,8 @@ class Genre < Item attr_reader :id, :items def initialize(name, id = nil) - super - @id = id || Random.random(1..1000) + super(name, author, source, label, publish_date) + @id = id || Random.rand(1..1000) @name = name @items = [] end