Class: Decidim::Calendar::Admin::DestroyExternalEvent

Inherits:
Rectify::Command
  • Object
show all
Defined in:
app/commands/decidim/calendar/admin/destroy_external_event.rb

Instance Method Summary collapse

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

#callObject



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