Class: Cb::Requests::Application::Create
- Includes:
- Cb::Requests::ApplicationUtils
- Defined in:
- lib/cb/requests/application/create.rb
Instance Method Summary collapse
Methods included from Cb::Requests::ApplicationUtils
#cover_letter_info, #parsed_responses, #resume_info
Methods inherited from Base
Constructor Details
This class inherits a constructor from Cb::Requests::Base
Instance Method Details
#body ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/cb/requests/application/create.rb', line 26 def body { JobDID: @args[:job_did], IsSubmitted: @args[:is_submitted], ExternalUserID: @args[:external_user_id], VID: @args[:vid], BID: @args[:bid], SID: @args[:sid], SiteID: @args[:site_id], IPathID: @args[:ipath_id], TNDID: @args[:tn_did], Resume: resume_info(@args[:resume]), CoverLetter: cover_letter_info(@args[:cover_letter]), Responses: parsed_responses(@args[:responses]), Test: test? }.to_json end |
#endpoint_uri ⇒ Object
10 11 12 |
# File 'lib/cb/requests/application/create.rb', line 10 def endpoint_uri Cb.configuration.uri_application_create end |
#headers ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/cb/requests/application/create.rb', line 18 def headers { 'DeveloperKey' => Cb.configuration.dev_key, 'HostSite' => Cb.configuration.host_site, 'Content-Type' => 'application/json' } end |
#http_method ⇒ Object
14 15 16 |
# File 'lib/cb/requests/application/create.rb', line 14 def http_method :post end |