module Decidim::Forms::QuestionnaireEntityInterface

This interface should be implemented by any Type that can be linked to a questionnaire The only requirement is to have an ID and the Type name be the class.name + Type

Public Class Methods

resolve_type(obj, _ctx) click to toggle source
# File lib/decidim/api/questionnaire_entity_interface.rb, line 13
def self.resolve_type(obj, _ctx)
  "#{obj.class.name}Type".constantize
end