Class: Organo::CLI::Commands::Anime::AddEntry

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/organo/commands/anime/anime_add.rb

Instance Method Summary collapse

Instance Method Details

#call(mal_id:) ⇒ Object



14
15
16
17
# File 'lib/organo/commands/anime/anime_add.rb', line 14

def call(mal_id:, **)
  anime = AnimeDatabase.instance.anime_add(mal_id)
  puts (anime.nil? ? 'Could not add the specified show to the database.' : anime)
end