Class: Decidim::Surveys::CreateSurvey
- Inherits:
-
Command
- Object
- Command
- Decidim::Surveys::CreateSurvey
- Defined in:
- app/commands/decidim/surveys/create_survey.rb
Overview
Command that gets called whenever a component’s survey has to be created. It usually happens as a callback when the component itself is created.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(component) ⇒ CreateSurvey
constructor
A new instance of CreateSurvey.
Constructor Details
#initialize(component) ⇒ CreateSurvey
Returns a new instance of CreateSurvey.
8 9 10 |
# File 'app/commands/decidim/surveys/create_survey.rb', line 8 def initialize(component) @component = component end |