TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'odk_aggregate'
And then execute:
$ bundle
Or install it yourself as:
$ gem install odk_aggregate
@odk = OdkAggregate::Connection.new("http://your.url.com")
forms = @odk.all_forms
form = forms.first
form.form_id
form.download_url
form.manifest_url
@odk.all_forms.each do |form|
puts form.get_top_element
end
form = @odk.find_form(form_id)
top_element = form.get_top_element
submissions = @odk.sumissions_where(formId: form_id).submissions
@odk.submissions_where(formId: form_id, key: submissions.first, topElement: top_element)
@odk.all_forms.each do |form|
top_element = form.get_top_element
submissions = @odk.submissions_where(formId: form.form_id).submissions
submission = @odk.submissions_where(formId: form.form_id, key: submissions.first, topElement: top_element)
puts submission
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request