Class: Minato::Utils::BaseCommand::Destroy
- Inherits:
-
Object
- Object
- Minato::Utils::BaseCommand::Destroy
- Includes:
- SimpleCommand
- Defined in:
- lib/minato/utils/base_command/destroy.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(model) ⇒ Destroy
constructor
A new instance of Destroy.
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
#call ⇒ Object
13 14 15 |
# File 'lib/minato/utils/base_command/destroy.rb', line 13 def call @model.destroy! end |