Class: Organo::CLI::Commands::Anime::ShowEntry

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

Instance Method Summary collapse

Instance Method Details

#call(mal_id:) ⇒ Object



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

def call(mal_id:, **)
  anime = AnimeDatabase.instance.anime_show(mal_id)
  puts (anime.nil? ? "MAL_ID #{mal_id} doesn't exist in the database." : anime)
end