Module: Formi9::Client::Eformi9
- Included in:
- Formi9::Client
- Defined in:
- lib/formi9/client/eformi9.rb
Overview
Defines methods related to formi9
Instance Method Summary collapse
- #case_status(result_id, options = {}) ⇒ Object
- #create_section1(options = {}) ⇒ Object
- #create_section2(options = {}) ⇒ Object
- #download_pdf(result_id, options = {}) ⇒ Object
- #update_section1(options = {}) ⇒ Object
Instance Method Details
#case_status(result_id, options = {}) ⇒ Object
17 18 19 |
# File 'lib/formi9/client/eformi9.rb', line 17 def case_status(result_id, ={}) get("eformi9/status?request.resultId=#{result_id}&request.generateAutoLoginUrl=#{!![:auto_login_url]}") end |
#create_section1(options = {}) ⇒ Object
5 6 7 |
# File 'lib/formi9/client/eformi9.rb', line 5 def create_section1(={}) post('eformi9/section1', ) end |
#create_section2(options = {}) ⇒ Object
13 14 15 |
# File 'lib/formi9/client/eformi9.rb', line 13 def create_section2(={}) post('eformi9/section2', ) end |
#download_pdf(result_id, options = {}) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/formi9/client/eformi9.rb', line 21 def download_pdf(result_id, ={}) = .with_indifferent_access params = [] [:printSignatures, :printNotes, :printEVerify, :printDocs, :printAuditTrail].each do |key| params << "#{key}=true" if [:key] end get("eformi9/#{result_id}/pdf?#{params.join('&')}") end |
#update_section1(options = {}) ⇒ Object
9 10 11 |
# File 'lib/formi9/client/eformi9.rb', line 9 def update_section1(={}) post('eformi9/section1/edit', ) end |