Class: Decidim::Calendar::Admin::DestroyExternalEvent
- Inherits:
-
Rectify::Command
- Object
- Rectify::Command
- Decidim::Calendar::Admin::DestroyExternalEvent
- Defined in:
- app/commands/decidim/calendar/admin/destroy_external_event.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(event) ⇒ DestroyExternalEvent
constructor
A new instance of DestroyExternalEvent.
Constructor Details
#initialize(event) ⇒ DestroyExternalEvent
Returns a new instance of DestroyExternalEvent.
7 8 9 |
# File 'app/commands/decidim/calendar/admin/destroy_external_event.rb', line 7 def initialize(event) @event = event end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 |
# File 'app/commands/decidim/calendar/admin/destroy_external_event.rb', line 11 def call destroy_external_event broadcast(:ok) end |