Class: Quby::Compiler::DSL::Questions::DateQuestionBuilder

Inherits:
Base
  • Object
show all
Includes:
MinMaxValidations
Defined in:
lib/quby/compiler/dsl/questions/date_question_builder.rb

Instance Attribute Summary

Attributes inherited from Base

#questionnaire

Instance Method Summary collapse

Methods included from MinMaxValidations

#validates_in_range, #validates_maximum, #validates_minimum

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) ⇒ DateQuestionBuilder

Returns a new instance of DateQuestionBuilder.



10
11
12
13
# File 'lib/quby/compiler/dsl/questions/date_question_builder.rb', line 10

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