Class: Decent::RemoveHodling
- Inherits:
-
Object
- Object
- Decent::RemoveHodling
- Defined in:
- lib/decent/command/hodling/remove_hodling.rb
Class Method Summary collapse
Class Method Details
.execute(args) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/decent/command/hodling/remove_hodling.rb', line 3 def self.execute(args) hodlings = Database[:holdings] nickname = args[1] hodling = hodlings.where(nickname: nickname) hodling.delete end |