Class: Quby::Questionnaires::Entities::Questions::SelectQuestion

Inherits:
Quby::Questionnaires::Entities::Question show all
Defined in:
lib/quby/questionnaires/entities/questions/select_question.rb

Constant Summary

Constants inherited from Quby::Questionnaires::Entities::Question

Quby::Questionnaires::Entities::Question::MARKDOWN_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from Quby::Questionnaires::Entities::Question

#allow_blank_titles, #allow_duplicate_option_values, #as, #autocomplete, #col_span, #cols, #context_free_title, #default_invisible, #default_position, #dependencies, #depends_on, #description, #deselectable, #disallow_bulk, #display_modes, #extra_data, #group_maximum_answered, #group_minimum_answered, #hidden, #input_data, #key, #labels, #lines, #options, #parent, #parent_option_key, #question_group, #questionnaire, #row_span, #sbg_key, #score_header, #sets_textvar, #show_values, #size, #table, #title, #type, #unit, #validations

Attributes inherited from Item

#presentation, #raw_content, #switch_cycle

Instance Method Summary collapse

Methods inherited from Quby::Questionnaires::Entities::Question

#answer_keys, #claimed_keys, #hidden?, #html_id, #initialize, #input_keys, #key_in_use?, #maximum, #minimum, #set_depends_on, #show_values_in_mode?, #subquestion?, #subquestions, #view_selector

Methods inherited from Item

#initialize

Constructor Details

This class inherits a constructor from Quby::Questionnaires::Entities::Question

Instance Method Details

#as_json(options = {}) ⇒ Object



8
9
10
# File 'lib/quby/questionnaires/entities/questions/select_question.rb', line 8

def as_json(options = {})
  super.merge(options: @options.as_json)
end