Class: Minato::Utils::BaseCommand::Destroy

Inherits:
Object
  • Object
show all
Includes:
SimpleCommand
Defined in:
lib/minato/utils/base_command/destroy.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ Destroy

Returns a new instance of Destroy.



9
10
11
# File 'lib/minato/utils/base_command/destroy.rb', line 9

def initialize(model)
  @model = model
end

Instance Method Details

#callObject



13
14
15
# File 'lib/minato/utils/base_command/destroy.rb', line 13

def call
  @model.destroy!
end