Class: Quby::Compiler::DSL::Questions::CheckboxQuestionBuilder

Inherits:
Base
  • Object
show all
Includes:
InnerTitles, MultipleChoice, Subquestions
Defined in:
lib/quby/compiler/dsl/questions/checkbox_question_builder.rb

Instance Attribute Summary

Attributes inherited from Base

#questionnaire

Instance Method Summary collapse

Methods included from InnerTitles

#inner_title

Methods included from Subquestions

#question, #title_question

Methods included from MultipleChoice

#option

Methods inherited from Base

#build, #context_free_title, #default_position, #depends_on, #description, #hidden, #presentation, #title, #validates_presence_of_answer

Methods inherited from Base

build

Methods included from Helpers

#check_question_keys_uniqueness, #image_alt, #image_tag, #video_tag

Constructor Details

#initialize(key, **options, &block) ⇒ CheckboxQuestionBuilder

Returns a new instance of CheckboxQuestionBuilder.



12
13
14
15
# File 'lib/quby/compiler/dsl/questions/checkbox_question_builder.rb', line 12

def initialize(key, **options, &block)
  super
  @question = Entities::Questions::CheckboxQuestion.new(key, options)
end