Class: Cb::Requests::ApplicationExternal::SubmitApplication

Inherits:
Base
  • Object
show all
Defined in:
lib/cb/requests/application_external/submit_application.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#base_uri, #headers, #initialize, #query

Constructor Details

This class inherits a constructor from Cb::Requests::Base

Instance Method Details

#bodyObject



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/cb/requests/application_external/submit_application.rb', line 25

def body
  "  <Request>\n    <DeveloperKey>\#{Cb.configuration.dev_key}</DeveloperKey>\n    <EmailAddress>\#{args[:email_address]}</EmailAddress>\n    <JobDID>\#{args[:job_did]}</JobDID>\n    <SiteID>\#{args[:site_id]}</SiteID>\n    <IPath>\#{ipath}</IPath>\n    <IsExternalLinkApply>\#{args[:is_external_link_apply]}</IsExternalLinkApply>\n    <HostSite>\#{args[:host_site] || Cb.configuration.host_site}</HostSite>\n    <SessionIdentifier>\#{args[:sid]}</SessionIdentifier>\n  </Request>\n  eos\nend\n"

#endpoint_uriObject



17
18
19
# File 'lib/cb/requests/application_external/submit_application.rb', line 17

def endpoint_uri
  Cb.configuration.uri_application_external
end

#http_methodObject



21
22
23
# File 'lib/cb/requests/application_external/submit_application.rb', line 21

def http_method
  :post
end