Class: Quby::Compiler::Entities::Questions::IntegerQuestion
- Inherits:
-
Quby::Compiler::Entities::Question
- Object
- Item
- Quby::Compiler::Entities::Question
- Quby::Compiler::Entities::Questions::IntegerQuestion
- Includes:
- Concerns::Slider, Concerns::SplitToUnits
- Defined in:
- lib/quby/compiler/entities/questions/integer_question.rb
Constant Summary
Constants included from Concerns::SplitToUnits
Concerns::SplitToUnits::DEFAULT_SPLIT_TO_UNIT_CONVERSIONS
Constants inherited from Quby::Compiler::Entities::Question
Quby::Compiler::Entities::Question::MARKDOWN_ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Quby::Compiler::Entities::Question
#allow_blank_titles, #allow_duplicate_option_values, #as, #autocomplete, #col_span, #cols, #context_description, #context_free_title, #css_vars, #default_invisible, #default_position, #dependencies, #depends_on, #description, #deselectable, #disallow_bulk, #display_modes, #extra_data, #group_maximum_answered, #group_minimum_answered, #hidden, #indent, #input_data, #key, #labels, #labels_i18n_key, #lines, #opt_groups, #options, #parent, #parent_option_key, #question_group, #questionnaire, #row_span, #sbg_key, #score_header, #sets_textvar, #show_values, #table, #title, #title_question, #type, #unit, #validations, #visibility_rules
Attributes inherited from Item
#presentation, #raw_content, #switch_cycle
Instance Method Summary collapse
Methods included from Concerns::SplitToUnits
#after_build, #default_split_to_units_conversions, #validate_split_to_units
Methods inherited from Quby::Compiler::Entities::Question
#after_build, #all_options, #answer_keys, #claimed_keys, #context_free_title_or_title, #hidden?, #html_id, #initialize, #input_keys, #key_in_use?, #maximum, #minimum, #path_str, #set_depends_on, #show_values_in_mode?, #subquestion?, #subquestions, #title_question?, #view_selector
Methods inherited from Item
Constructor Details
This class inherits a constructor from Quby::Compiler::Entities::Question
Instance Method Details
#size ⇒ Object
14 15 16 |
# File 'lib/quby/compiler/entities/questions/integer_question.rb', line 14 def size @size || 30 end |
#step ⇒ Object
18 19 20 |
# File 'lib/quby/compiler/entities/questions/integer_question.rb', line 18 def step 1 end |