Class: Decidim::Accountability::Admin::CreateImportedResult

Inherits:
Commands::CreateResource show all
Includes:
HasResultCommand
Defined in:
decidim-accountability/app/commands/decidim/accountability/admin/create_imported_result.rb

Overview

This command is executed when the user creates a Result from the admin panel using the “Import results from CSV file” feature

Instance Method Summary collapse

Methods included from HasResultCommand

#link_meetings, #link_projects, #link_proposals, #meeting_ids, #meetings, #notify_proposal_followers, #projects, #proposals

Methods inherited from Commands::CreateResource

#call

Methods inherited from Command

call, #evaluate, #method_missing, #respond_to_missing?, #transaction, #with_events

Constructor Details

#initialize(form, parent_id = nil) ⇒ CreateImportedResult

Returns a new instance of CreateImportedResult.



14
15
16
17
# File 'decidim-accountability/app/commands/decidim/accountability/admin/create_imported_result.rb', line 14

def initialize(form, parent_id = nil)
  super(form)
  @parent_id = parent_id
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Decidim::Command