Class: PRGM::Commands::Remove

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/prgm/commands/remove.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



6
7
8
# File 'lib/prgm/commands/remove.rb', line 6

def execute
  PRGM::Models::Item.where(name: name).first.destroy
end