Class: Qe::StateChooser
- Defined in:
- app/models/qe/state_chooser.rb
Instance Attribute Summary
Attributes inherited from Question
Instance Method Summary collapse
Methods inherited from Question
#default_label?, #display_response, #has_response?, #required?, #response, #responses, #save_file, #save_response, #set_response, #validation_class
Methods inherited from Element
#all_elements, #duplicate, #has_response?, max_label_length, #position, #ptemplate, #question?, #required?, #reuseable?, #set_position
Instance Method Details
#choices(country = 'US') ⇒ Object
6 7 8 |
# File 'app/models/qe/state_chooser.rb', line 6 def choices(country = 'US') @states = Carmen::states(country) end |