Class: Fe::StateChooser
- Defined in:
- app/models/fe/state_chooser.rb
Instance Attribute Summary
Attributes inherited from Question
Instance Method Summary collapse
Methods inherited from Question
#default_label?, #display_response, #has_response?, #locked?, #response, #responses, #save_file, #save_response, #set_response, #validation_class
Methods inherited from Element
#all_elements, #conditional_match, #content, #duplicate, #has_response?, #hidden?, #hidden_by_choice_field?, #hidden_by_conditional?, #label, #limit, max_label_length, #page_id, #pages_on, #position, #previous_element, #ptemplate, #question?, #required?, #reuseable?, #set_conditional_element, #set_position, #tooltip, #update_any_previous_conditional_elements, #update_page_all_element_ids, #visible?
Instance Method Details
#choices(country = 'US') ⇒ Object
6 7 8 |
# File 'app/models/fe/state_chooser.rb', line 6 def choices(country = 'US') @states = Carmen.states(country) end |