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

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, options={})
  get("eformi9/status?request.resultId=#{result_id}&request.generateAutoLoginUrl=#{!!options[:auto_login_url]}")
end

#create_section1(options = {}) ⇒ Object



5
6
7
# File 'lib/formi9/client/eformi9.rb', line 5

def create_section1(options={})
  post('eformi9/section1', options)
end

#create_section2(options = {}) ⇒ Object



13
14
15
# File 'lib/formi9/client/eformi9.rb', line 13

def create_section2(options={})
  post('eformi9/section2', options)
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, options={})
  options = options.with_indifferent_access
  params = []
  [:printSignatures, :printNotes, :printEVerify, :printDocs, :printAuditTrail].each do |key|
    params << "#{key}=true" if options[: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(options={})
  post('eformi9/section1/edit', options)
end