Class: Fe::StateChooser

Inherits:
Question show all
Defined in:
app/models/fe/state_chooser.rb

Instance Attribute Summary

Attributes inherited from Question

#answers

Instance Method Summary collapse

Methods inherited from Question

#default_label?, #display_response, #has_response?, #locked?, #required?, #response, #responses, #save_file, #save_response, #set_response, #validation_class

Methods inherited from Element

#all_elements, #conditional_match, #duplicate, #has_response?, #limit, max_label_length, #page_id, #position, #previous_element, #ptemplate, #question?, #required?, #reuseable?, #set_conditional_element, #set_position, #update_any_previous_conditional_elements

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