cb-api 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cb/clients/email_subscription_api.rb +7 -1
- data/lib/cb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTlkZTMzNzVkMGMzYTNiY2M3OTNmMGY4ZjE4MTJjNjJlMjA3YjViMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mjc3MWVkODkwZGQzNWFiYzRmNGM4ZGU2ODYzZmEyYWYxNzRiN2IwMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjI4YjU1MTJkMzI2ZDM1NjIwY2ViZWE0YTU4OWJiZjRmMDkyMWRkZmI1YzM4
|
10
|
+
ZDE3YjdjZTNlMTg3OWVhMmE1MDUzODJiZTk5ZTkzYTdjY2I0MjAzMzk2NDE4
|
11
|
+
NDIyYjc0OTQyYzE2N2UyOTM2MGMzNzU2YjE5YzliNTU5MDE0N2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzBlNzNjMDY4OTQ1NmI5NWEyNzFlZTdkZGE1MzZiNDliMjNjYmJjZTViMWI4
|
14
|
+
YzFiZWQ3Mzk3NjllNmMwNzdjMDQxMjdiMjVlYjc1NTNhYTQxNjllZTVkMTNh
|
15
|
+
ZWExNzFjODU4MzEyMmMxZDk2NDU5ZTE1NGZmNTcyMDE0YjFiYjk=
|
@@ -25,10 +25,16 @@ module Cb
|
|
25
25
|
## http://api.careerbuilder.com/usersubscriptionretrieve.aspx
|
26
26
|
#############################################################
|
27
27
|
def self.modify_subscription ext_id, career_resources, product_sponsor_info, applicant_survey_invites, job_recs, unsubscribe_all
|
28
|
-
if unsubscribe_all
|
28
|
+
if unsubscribe_all && unsubscribe_all != 'false'
|
29
29
|
career_resources = product_sponsor_info = applicant_survey_invites = job_recs = false.to_s
|
30
30
|
end
|
31
31
|
|
32
|
+
career_resources = career_resources.nil? ? 'false' : career_resources
|
33
|
+
product_sponsor_info = product_sponsor_info.nil? ? 'false' : product_sponsor_info
|
34
|
+
applicant_survey_invites = applicant_survey_invites.nil? ? 'false' : applicant_survey_invites
|
35
|
+
job_recs = job_recs.nil? ? 'false' : job_recs
|
36
|
+
unsubscribe_all = unsubscribe_all.nil? ? 'false' : unsubscribe_all
|
37
|
+
|
32
38
|
my_api = Cb::Utils::Api.new()
|
33
39
|
|
34
40
|
xml_body = "<Request>"
|
data/lib/cb/version.rb
CHANGED