Class: JotForm::Form
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- JotForm::Form
- Defined in:
- lib/jotform/forms.rb
Instance Method Summary collapse
Instance Method Details
#questions ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/jotform/forms.rb', line 5 def questions @questions ||= ::JotForm::API.getFormQuestions(id).values.map do |v| v.keys.each do |key| v[(key.to_sym rescue key) || key] = v.delete(key) end v end.sort{|a, b| a[:order].to_i <=> b[:order].to_i} end |
#submission_url ⇒ Object
14 15 16 |
# File 'lib/jotform/forms.rb', line 14 def submission_url "http://submit.jotformpro.com/submit/#{id}" end |