cb-api 6.3.2 → 6.3.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,15 @@
|
|
1
1
|
module Cb
|
2
2
|
module Models
|
3
3
|
class ApplicationExternal
|
4
|
+
|
5
|
+
IPATH_LENGTH = 10
|
4
6
|
attr_accessor :job_did, :email, :site_id, :ipath, :apply_url, :is_external_link_apply
|
5
7
|
|
6
8
|
def initialize(args = {})
|
7
9
|
@job_did = args[:job_did] || ''
|
8
10
|
@email = args[:email] || ''
|
9
11
|
@site_id = args[:site_id] || 'cbnsv'
|
10
|
-
@ipath = args[:ipath] || ''
|
12
|
+
@ipath = args[:ipath].slice(0,IPATH_LENGTH) || ''
|
11
13
|
@is_external_link_apply = args[:is_external_link_apply] || false
|
12
14
|
@apply_url = ''
|
13
15
|
end
|
@@ -18,7 +20,7 @@ module Cb
|
|
18
20
|
ret += "<EmailAddress>#{@email}</EmailAddress>"
|
19
21
|
ret += "<JobDID>#{@job_did}</JobDID>"
|
20
22
|
ret += "<SiteID>#{@site_id}</SiteID>"
|
21
|
-
ret += "<IPath>#{@ipath
|
23
|
+
ret += "<IPath>#{@ipath}</IPath>"
|
22
24
|
ret += "<IsExternalLinkApply>#{@is_external_link_apply}</IsExternalLinkApply>"
|
23
25
|
ret += "<HostSite>#{Cb.configuration.host_site}</HostSite>"
|
24
26
|
ret += "</Request>"
|
data/lib/cb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cb-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.3.
|
4
|
+
version: 6.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|