Class: Organo::CLI::Commands::AnimeSequel::RemoveEntry

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

Instance Method Summary collapse

Instance Method Details

#call(parent_id:, child_id:) ⇒ Object



15
16
17
18
# File 'lib/organo/commands/sequel/sequel_remove.rb', line 15

def call(parent_id:, child_id:, **)
  sequel = AnimeDatabase.instance.sequel_remove(parent_id, child_id)
  puts sequel.first unless sequel.first.nil?
end