Skip to content

Commit

Permalink
update genre.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Fombi-Favour committed Dec 22, 2023
1 parent e558405 commit fef7c23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/genre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fef7c23

Please sign in to comment.