Class: Quby::Questionnaires::DSL::Questions::RadioQuestionBuilder

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

Instance Attribute Summary

Attributes inherited from Base

#key, #questionnaire, #title, #type

Instance Method Summary collapse

Methods included from InnerTitles

#inner_title

Methods included from Subquestions

#build, #question, #title_question

Methods included from MultipleChoice

#option

Methods inherited from Base

#build, #context_free_title, #default_position, #depends_on, #description, #hidden, #presentation, #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) ⇒ RadioQuestionBuilder

Returns a new instance of RadioQuestionBuilder.



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

def initialize(key, options = {}, &block)
  super
  @question = Entities::Questions::RadioQuestion.new(key, options)
end