Class: Cb::Clients::ApplicationExternal
- Inherits:
-
Object
- Object
- Cb::Clients::ApplicationExternal
- Defined in:
- lib/cb/clients/application_external.rb
Class Method Summary collapse
Class Method Details
.submit_app(app) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cb/clients/application_external.rb', line 7 def self.submit_app(app) raise Cb::IncomingParamIsWrongTypeException unless app.is_a?(Cb::Models::ApplicationExternal) my_api = Cb::Utils::Api.instance xml_hash = my_api.cb_post(Cb.configuration.uri_application_external, :body => app.to_xml) if xml_hash.has_key? 'ApplyUrl' app.apply_url = xml_hash['ApplyUrl'] else app.apply_url = '' end my_api.append_api_responses(app, xml_hash) end |