Class: Quby::Questionnaires::DSL::Questions::FloatQuestionBuilder

Inherits:
Base
  • Object
show all
Includes:
Labeling, MinMaxValidations, Sizes, Units
Defined in:
lib/quby/questionnaires/dsl/questions/float_question_builder.rb

Instance Attribute Summary

Attributes inherited from Base

#key, #questionnaire, #title, #type

Instance Method Summary collapse

Methods included from Sizes

#size

Methods included from Units

#unit

Methods included from Labeling

#label, #left_label, #right_label

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, #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) ⇒ FloatQuestionBuilder

Returns a new instance of FloatQuestionBuilder.



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

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