forked from jcmunav63/catalog-my-things
-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog.rb
61 lines (48 loc) · 1.15 KB
/
catalog.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require_relative 'book_manager'
require_relative 'musicalbum_manager'
require_relative 'attributes_lists'
require_relative 'games_manager'
class Catalog
def initialize
@book_manager = BookManager.new
@musicalbum_manager = AlbumManager.new
@attributes_lists = AttributesLists.new
@games_manager = GamesManager.new
end
def list_all_books
@book_manager.list_all_books
end
def list_all_music_albums
@musicalbum_manager.list_all_music_albums
end
def list_all_movies
puts 'This option will be available in the future.'
end
def list_all_games
@games_manager.list_all_games
end
def list_all_genres
@attributes_lists.list_all_genres
end
def list_all_labels
@attributes_lists.list_all_labels
end
def list_all_authors
@attributes_lists.list_all_authors
end
def list_all_sources
puts 'This option will be available in the future.'
end
def add_a_book
@book_manager.add_a_book
end
def add_a_music_album
@musicalbum_manager.add_a_music_album
end
def add_a_movie
puts 'This option will be available in the future.'
end
def add_a_game
@games_manager.add_a_game
end
end