cb-api 1.3.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/lib/cb.rb +7 -99
  2. data/lib/cb/clients/anon_saved_search.rb +42 -0
  3. data/lib/cb/clients/application.rb +53 -0
  4. data/lib/cb/clients/application_external.rb +24 -0
  5. data/lib/cb/clients/category.rb +49 -0
  6. data/lib/cb/clients/company.rb +34 -0
  7. data/lib/cb/clients/education.rb +28 -0
  8. data/lib/cb/clients/email_subscription.rb +55 -0
  9. data/lib/cb/clients/employee_types.rb +31 -0
  10. data/lib/cb/clients/job.rb +57 -0
  11. data/lib/cb/clients/job_branding.rb +21 -0
  12. data/lib/cb/clients/recommendation.rb +76 -0
  13. data/lib/cb/clients/saved_search.rb +66 -0
  14. data/lib/cb/clients/spot.rb +27 -0
  15. data/lib/cb/clients/talent_network.rb +51 -0
  16. data/lib/cb/clients/user.rb +94 -0
  17. data/lib/cb/convenience.rb +83 -0
  18. data/lib/cb/criteria/job/details.rb +11 -0
  19. data/lib/cb/criteria/job/search.rb +25 -0
  20. data/lib/cb/criteria/spot/retrieve.rb +12 -0
  21. data/lib/cb/exceptions.rb +2 -1
  22. data/lib/cb/models/implementations/application.rb +92 -0
  23. data/lib/cb/models/implementations/application_external.rb +28 -0
  24. data/lib/cb/models/implementations/application_schema.rb +75 -0
  25. data/lib/cb/models/implementations/branding/media.rb +14 -14
  26. data/lib/cb/models/implementations/branding/section.rb +14 -15
  27. data/lib/cb/models/implementations/branding/style.rb +10 -10
  28. data/lib/cb/models/implementations/branding/styles/base.rb +12 -10
  29. data/lib/cb/models/implementations/branding/styles/buttons.rb +7 -6
  30. data/lib/cb/models/implementations/branding/styles/company_info.rb +14 -12
  31. data/lib/cb/models/implementations/branding/styles/container.rb +7 -6
  32. data/lib/cb/models/implementations/branding/styles/content.rb +7 -5
  33. data/lib/cb/models/implementations/branding/styles/css_adapter.rb +39 -41
  34. data/lib/cb/models/implementations/branding/styles/headings.rb +7 -5
  35. data/lib/cb/models/implementations/branding/styles/job_details.rb +12 -11
  36. data/lib/cb/models/implementations/branding/styles/page.rb +7 -5
  37. data/lib/cb/models/implementations/branding/widget.rb +9 -7
  38. data/lib/cb/models/implementations/category.rb +24 -0
  39. data/lib/cb/models/implementations/company.rb +135 -0
  40. data/lib/cb/models/implementations/education.rb +17 -0
  41. data/lib/cb/models/implementations/email_subscription.rb +17 -0
  42. data/lib/cb/models/implementations/employee_type.rb +13 -0
  43. data/lib/cb/models/implementations/job.rb +167 -0
  44. data/lib/cb/models/implementations/job_branding.rb +34 -0
  45. data/lib/cb/models/implementations/saved_search.rb +159 -0
  46. data/lib/cb/models/implementations/spot.rb +30 -0
  47. data/lib/cb/models/implementations/talent_network.rb +156 -0
  48. data/lib/cb/models/implementations/user.rb +58 -0
  49. data/lib/cb/responses/anonymous_saved_search/create.rb +36 -0
  50. data/lib/cb/responses/anonymous_saved_search/delete.rb +23 -0
  51. data/lib/cb/responses/api_response.rb +64 -0
  52. data/lib/cb/responses/employee_types/search.rb +48 -0
  53. data/lib/cb/responses/errors.rb +47 -0
  54. data/lib/cb/responses/metadata.rb +27 -0
  55. data/lib/cb/responses/saved_search/delete.rb +28 -0
  56. data/lib/cb/responses/saved_search/list.rb +43 -0
  57. data/lib/cb/responses/saved_search/singular.rb +50 -0
  58. data/lib/cb/responses/spot/retrieve_response.rb +31 -20
  59. data/lib/cb/responses/timing.rb +37 -0
  60. data/lib/cb/utils/api.rb +2 -2
  61. data/lib/cb/utils/response_array_extractor.rb +14 -4
  62. data/lib/cb/version.rb +1 -1
  63. metadata +114 -69
  64. data/lib/cb/clients/anon_saved_search_api.rb +0 -41
  65. data/lib/cb/clients/application_api.rb +0 -78
  66. data/lib/cb/clients/application_external_api.rb +0 -30
  67. data/lib/cb/clients/category_api.rb +0 -51
  68. data/lib/cb/clients/company_api.rb +0 -39
  69. data/lib/cb/clients/education_api.rb +0 -37
  70. data/lib/cb/clients/email_subscription_api.rb +0 -68
  71. data/lib/cb/clients/employee_types_api.rb +0 -48
  72. data/lib/cb/clients/job_api.rb +0 -70
  73. data/lib/cb/clients/job_branding_api.rb +0 -24
  74. data/lib/cb/clients/recommendation_api.rb +0 -98
  75. data/lib/cb/clients/resume_api.rb +0 -185
  76. data/lib/cb/clients/saved_search_api.rb +0 -139
  77. data/lib/cb/clients/spot_api.rb +0 -25
  78. data/lib/cb/clients/talent_network_api.rb +0 -70
  79. data/lib/cb/clients/user_api.rb +0 -118
  80. data/lib/cb/criteria/job_details_criteria.rb +0 -11
  81. data/lib/cb/criteria/job_search_criteria.rb +0 -29
  82. data/lib/cb/criteria/spot_retrieve_criteria.rb +0 -12
  83. data/lib/cb/models/implementations/cb_application.rb +0 -91
  84. data/lib/cb/models/implementations/cb_application_external.rb +0 -31
  85. data/lib/cb/models/implementations/cb_application_schema.rb +0 -78
  86. data/lib/cb/models/implementations/cb_category.rb +0 -22
  87. data/lib/cb/models/implementations/cb_company.rb +0 -133
  88. data/lib/cb/models/implementations/cb_education.rb +0 -25
  89. data/lib/cb/models/implementations/cb_email_subscription.rb +0 -19
  90. data/lib/cb/models/implementations/cb_employee_type.rb +0 -12
  91. data/lib/cb/models/implementations/cb_job.rb +0 -175
  92. data/lib/cb/models/implementations/cb_job_branding.rb +0 -33
  93. data/lib/cb/models/implementations/cb_resume.rb +0 -221
  94. data/lib/cb/models/implementations/cb_saved_search.rb +0 -228
  95. data/lib/cb/models/implementations/cb_spot.rb +0 -32
  96. data/lib/cb/models/implementations/cb_talent_network.rb +0 -155
  97. data/lib/cb/models/implementations/cb_user.rb +0 -56
  98. data/lib/cb/responses/raw_api_response.rb +0 -34
@@ -1,33 +0,0 @@
1
- module Cb
2
- class CbJobBranding
3
-
4
- attr_accessor :name, :media, :sections, :styles, :widgets, :id, :account_id, :type, :tracking, :errors, :show_widgets, :company_description
5
-
6
- def initialize args = {}
7
- @name = args['Name'] || ''
8
- @id = args['Id'] || ''
9
- @account_id = args['AccountId'] || ''
10
- @type = args['Type'] || ''
11
- @tracking = args['Tracking'] || ''
12
- @media = Cb::Branding::Media.new args['Media']
13
- @styles = Cb::Branding::Style.new args['Styles']
14
- @errors = args['Errors'] || ''
15
- @company_description = args['CompanyDescription'] || ''
16
- @sections, @widgets = [], []
17
-
18
- args['Sections'].each do |type, sections|
19
- @sections << Cb::Branding::Section.new(type, sections) unless sections.nil?
20
- end
21
-
22
- args['Widgets'].each do |type, url|
23
- if type == 'ShowWidgets'
24
- @show_widgets = url == 'true'
25
- else
26
- @widgets << Cb::Branding::Widget.new(type, url) unless url.nil?
27
- end
28
- end
29
-
30
- end
31
-
32
- end
33
- end
@@ -1,221 +0,0 @@
1
- module Cb
2
- class CbResume
3
- attr_accessor :external_resume_id, :external_user_id,
4
- :did, :title, :visibility, :resume_text,
5
- :email, :real_name, :gender, :phone, :birth_date,
6
- :address, :city, :state, :postal_code, :country_code,
7
- :show_contact_info, :test,
8
- :created_dt, :modified_dt,
9
- :categories, :languages,
10
- :company_experiences, :educations,
11
- :custom_values
12
-
13
- def initialize(args = {})
14
- set_attributes(args)
15
- end
16
-
17
- def set_attributes(args = {})
18
- return if args.nil?
19
- @did = args['ResumeDID'] || ''
20
- @email = args['Email'] || ''
21
- @real_name = args['RealName'] || ''
22
- @gender = args['Gender'] || ''
23
- @address = args['Address'] || ''
24
- @city = args['City'] || ''
25
- @state = args['State'] || ''
26
- @postal_code = args['PostalCode'] || ''
27
- @country_code = args['CountryCode'] || ''
28
- @phone = args['Phone'] || ''
29
- @birth_date = args['BirthDate'] || ''
30
- @title = args['Title'] || ''
31
- @visibility = args['Visibility'] || ''
32
- @show_contact_info = args['ShowContactInfo'] || ''
33
- @created_dt = args['CreatedDT'] || ''
34
- @modified_dt = args['ModifiedDT'] || ''
35
- @categories = args['Categories'] || ''
36
- @resume_text = args['ResumeText'] || ''
37
- @stats_searches = !args['Stats'].nil? ? args['Stats']['Searches'] : -1
38
- @stats_clicks = !args['Stats'].nil? ? args['Stats']['Clicks'] : -1
39
- @stats_applications = !args['Stats'].nil? ? args['Stats']['Applications'] : -1
40
-
41
- #These don't come back on retrieve
42
- @external_resume_id = '' if @external_resume_id.blank?
43
- @external_user_id = '' if @external_user_id.blank?
44
-
45
- @test = false
46
-
47
- @company_experiences = []
48
- if args.has_key?('CompanyExperiences') && !args['CompanyExperiences'].blank?
49
- ce = args['CompanyExperiences']['CompanyExperience']
50
- if ce.is_a? Array
51
- ce.each do | hi |
52
- @company_experiences << CbResume::CbCompanyExperience.new(hi)
53
- end
54
- elsif ce.is_a? Hash
55
- @company_experiences << CbResume::CbCompanyExperience.new(ce)
56
- end
57
- end
58
-
59
- @educations = []
60
- if args.has_key?('Educations') && !args['Educations'].blank?
61
- ed = args['Educations']['Education']
62
- if ed.is_a? Array
63
- ed.each do | hello |
64
- @educations << CbResume::CbEducation.new(hello)
65
- end
66
- elsif ed.is_a? Hash
67
- @educations << CbResume::CbEducation.new(ed)
68
- end
69
- end
70
-
71
- @languages = []
72
- if args.has_key?('Languages') && !args['Languages'].blank?
73
- la = args['Languages']['Language']
74
- if la.is_a? Array
75
- la.each do | greetings |
76
- @languages << CbResume::CbLanguage.new(greetings)
77
- end
78
- elsif la.is_a? String
79
- @languages << CbResume::CbLanguage.new(la)
80
- end
81
- end
82
-
83
- @custom_values = []
84
- if args.has_key?('CustomValues') && !args['CustomValues'].blank?
85
- cv = args['CustomValues']['CustomValue']
86
- if cv.is_a? Array
87
- cv.each do | hola |
88
- @custom_values << CbResume::CbCustomValue.new(hola)
89
- end
90
- elsif cv.is_a? Hash
91
- @custom_values << CbResume::CbCustomValue.new(cv)
92
- end
93
- end
94
- end
95
-
96
- def load
97
- Cb.resume.retrieve self
98
- end
99
-
100
- def add_company_experience(params)
101
- @company_experiences << CbResume::CbCompanyExperience.new(params)
102
- end
103
-
104
- def add_education(params)
105
- @educations << CbResume::CbEducation.new(params)
106
- end
107
-
108
- def add_language(params)
109
- @languages << CbResume::CbLanguage.new(params)
110
- end
111
-
112
- def add_custom_value(params)
113
- @custom_values << CbResume::CbCustomValue.new(params)
114
- end
115
-
116
- def custom_value custom_value_key
117
- custom_value = ""
118
-
119
- @custom_values.each do |cv|
120
- custom_value = cv.value if cv.key == custom_value_key
121
- end
122
-
123
- return custom_value
124
- end
125
-
126
- def current_employed
127
- custom_value "CURR_EMPLYD"
128
- end
129
-
130
- def desired_job_type
131
- custom_value "DES_JOB_TYP"
132
- end
133
-
134
- def experience_in_months
135
- custom_value "EXP_MNS"
136
- end
137
-
138
- def job_type
139
- custom_value "JOB_TYP"
140
- end
141
-
142
- def recent_income
143
- custom_value "RCNT_INCM"
144
- end
145
-
146
- def recent_income_currency_type
147
- custom_value "RCNT_INCM_CRCY_TYP"
148
- end
149
-
150
- def recent_income_type
151
- custom_value "RCNT_INCM_TYP"
152
- end
153
-
154
- def it_skill
155
- custom_value "IT_SKILLS"
156
- end
157
-
158
- def certifications
159
- custom_value "CERTS"
160
- end
161
-
162
- def management_experience
163
- custom_value "MGMT_EXP"
164
- end
165
-
166
- def lang_prof(id_lang)
167
- custom_value "LANG_PROF" + id_lang
168
- end
169
-
170
- def langs
171
- custom_value "LANGS"
172
- end
173
-
174
- def lang(id_lang)
175
- custom_value "LANG" + id_lang
176
- end
177
- end
178
-
179
- class CbResume::CbCompanyExperience
180
- attr_accessor :job_title, :company_name, :start_date, :end_date, :is_current, :details
181
-
182
- def initialize(args = {})
183
- @job_title = args['JobTitle'] || ''
184
- @company_name = args['CompanyName'] || ''
185
- @start_date = args['StartDate'] || ''
186
- @end_date = args['EndDate'] || ''
187
- @is_current = args['IsCurrent'] || ''
188
- @details = args['Details'] || ''
189
- end
190
- end
191
-
192
- class CbResume::CbEducation
193
- attr_accessor :school_name, :major, :degree_name, :degree_code, :graduation_date, :gpa
194
-
195
- def initialize(args = {})
196
- @school_name = args['SchoolName'] || ''
197
- @major = args['Major'] || ''
198
- @degree_name = args['DegreeName'] || ''
199
- @degree_code = args['DegreeCode'] || ''
200
- @graduation_date = args['GraduationDate'] || ''
201
- @gpa = args['GPA'] || ''
202
- end
203
- end
204
-
205
- class CbResume::CbLanguage
206
- attr_accessor :name
207
-
208
- def initialize(code = '')
209
- @name = code
210
- end
211
- end
212
-
213
- class CbResume::CbCustomValue
214
- attr_accessor :key, :value
215
-
216
- def initialize(args = {})
217
- @key = args['Key'] || ''
218
- @value = args['Value'] || ''
219
- end
220
- end
221
- end
@@ -1,228 +0,0 @@
1
- require 'nokogiri'
2
- module Cb
3
- class CbSavedSearch
4
- attr_accessor :hostsite, :cobrand, :site_id, :search_name, :boolean_operator, :category, :education_code, :specific_education,
5
- :emp_type, :exclude_company_names, :exclude_job_titles, :exclude_national, :industry_codes,
6
- :keywords, :order_by, :order_direction, :radius, :pay_high, :pay_low, :posted_within,
7
- :pay_info_only, :location, :job_category, :company, :city, :state, :is_daily_email, :email_delivery_day, :external_id,
8
- :external_user_id, :dev_key, :job_search_url, :jrdid, :errors, :browser_id, :session_id, :test, :email_address,
9
- :saved_search_parameters, :country
10
-
11
- def initialize(args={})
12
- @hostsite = args['HostSite'] || ''
13
- @cobrand = args['Cobrand'] || ''
14
- @search_name = args['SearchName'] || ''
15
- @site_id = args['SiteId'] || ''
16
- @boolean_operator = args['BooleanOperator'] || ''
17
- @category = args['Category'] || ''
18
- @education_code = args['EducationCode'] || ''
19
- @specific_education = args['SpecificEducation'] || false
20
- @emp_type = args['EmpType'] || ''
21
- @exclude_company_names = args['ExcludeCompanyNames'] || ''
22
- @exclude_job_titles = args['ExcludeJobTitles'] || ''
23
- @exclude_national = args['ExcludeNational'] || false
24
- @industry_codes = args['IndustryCodes'] || ''
25
- @keywords = args['Keywords'] || ''
26
- @order_by = args['OrderBy'] || ''
27
- @order_direction = args['OrderDirection'] || ''
28
- @radius = args['Radius'] || 30
29
- @pay_high = args['PayHigh'] || 0
30
- @pay_low = args['PayLow'] || 0
31
- @posted_within = args['PostedWithin'] || 30
32
- @pay_info_only = args['PayInfoOnly'] || false
33
- @location = args['Location'] || ''
34
- @job_category = args['JobCategory'] || ''
35
- @company = args['Company'] || ''
36
- @city = args['City'] || ''
37
- @state = args['State'] || ''
38
- @is_daily_email = args['IsDailyEmail'] || ''
39
- @email_delivery_day = args['EmailDeliveryDay'] || ''
40
- @external_id = args['ExternalID'] || ''
41
- @external_user_id = args['ExternalUserID'] || ''
42
- @dev_key = args['DeveloperKey'] || ''
43
- @job_search_url = args['JobSearchUrl'] || ''
44
- @jrdid = args['JRDID'] || ''
45
- @errors = args['Errors'] || nil
46
- @browser_id = args['BrowserID'] || nil
47
- @session_id = args['SessionID'] || ''
48
- @test = args['Test'].to_s || false
49
- @email_address = args['EmailAddress'] || ''
50
- @country = args['Country'] || ''
51
- if args.has_key?('SavedSearchParameters')
52
- unless args['SavedSearchParameters'].empty?
53
- @saved_search_parameters = CbSavedSearch.new(args['SavedSearchParameters'])
54
- end
55
- end
56
- end
57
-
58
- class CbSavedSearchParameters
59
- attr_accessor :boolean_operator, :category, :education_code, :emp_type, :exclude_company_names, :exclude_job_titles,
60
- :exclude_keywords, :exclude_national, :industry_codes, :job_title, :keywords, :location, :order_by,
61
- :order_direction, :pay_high, :pay_info_only, :pay_low, :posted_within, :radius, :specific_education,
62
- :country
63
-
64
- def initialize(args = {})
65
- @boolean_operator = args['BooleanOperator'] || ''
66
- @category = args['Category'] || ''
67
- @education_code = args['EducationCode'] || ''
68
- @emp_type = args['EmpType'] || ''
69
- @exclude_company_names = args['ExcludeCompanyNames'] || ''
70
- @exclude_job_titles = args['ExcludeJobTitles'] || ''
71
- @exclude_keywords = args['ExcludeKeywords'] || ''
72
- @exclude_national = args['ExcludeNational'] || false
73
- @industry_codes = args['IndustryCodes'] || ''
74
- @job_title = args['Jobtitle'] || ''
75
- @keywords = args['Keywords'] || ''
76
- @location = args['Location'] || ''
77
- @order_by = args['OrderBy'] || ''
78
- @order_direction = args['OrderDirection'] || ''
79
- @pay_high = args['PayHigh'] || 0
80
- @pay_info_only = args['PayInfoOnly'] || false
81
- @pay_low = args['PayLow'] || 0
82
- @posted_within = args['PostedWithin'] || 30
83
- @radius = args['Radius'] || 30
84
- @specific_education = args['SpecificEducation'] || false
85
- @country = args['Country'] || ''
86
- end
87
- end #CbSavedSearchParameters
88
-
89
- def create_to_xml
90
- ret = "<Request>"
91
- ret += "<HostSite>#{@hostsite}</HostSite>"
92
- ret += "<Cobrand>#{@cobrand}</Cobrand>"
93
- ret += "<SearchName>#{@search_name}</SearchName>"
94
- ret += "<SearchParameters>"
95
- ret += "<BooleanOperator>#{@boolean_operator}</BooleanOperator>"
96
- ret += "<Category>#{@category}</Category>"
97
- ret += "<EducationCode>#{@education_code}</EducationCode>"
98
- ret += "<SpecificEducation>#{@specific_education}</SpecificEducation>"
99
- ret += "<EmpType>#{@emp_type}</EmpType>"
100
- ret += "<ExcludeCompanyNames>#{@exclude_company_names}</ExcludeCompanyNames>"
101
- ret += "<ExcludeJobTitles>#{@exclude_job_titles}</ExcludeJobTitles>"
102
- ret += "<ExcludeNational>#{@exclude_national}</ExcludeNational>"
103
- ret += "<IndustryCodes>#{@industry_codes}</IndustryCodes>"
104
- ret += "<Keywords>#{@keywords}</Keywords>"
105
- ret += "<OrderBy>#{@order_by}</OrderBy>"
106
- ret += "<OrderDirection>#{@order_direction}</OrderDirection>"
107
- ret += "<Radius>#{@radius}</Radius>"
108
- ret += "<PayHigh>#{@pay_high}</PayHigh>"
109
- ret += "<PayLow>#{@pay_high}</PayLow>"
110
- ret += "<PostedWithin>#{@posted_within}</PostedWithin>"
111
- ret += "<PayInfoOnly>#{@pay_info_only}</PayInfoOnly>"
112
- ret += "<Location>#{@location}</Location>"
113
- ret += "<JobCategory>#{@job_category}</JobCategory>"
114
- ret += "<Company>#{@company}</Company>"
115
- ret += "<City>#{@city}</City>"
116
- ret += "<State>#{@state}</State>"
117
- ret += "<Country>#{@country}</Country>"
118
- ret += "</SearchParameters>"
119
- ret += "<IsDailyEmail>#{@is_daily_email.upcase}</IsDailyEmail>"
120
- ret += "<ExternalUserID>#{@external_user_id}</ExternalUserID>"
121
- ret += "<DeveloperKey>#{@dev_key}</DeveloperKey>"
122
- ret += "</Request>"
123
-
124
- ret
125
- end
126
-
127
- def create_anon_to_xml
128
- ret = "<Request>"
129
- ret += "<HostSite>#{@hostsite}</HostSite>"
130
- ret += "<Cobrand>#{@cobrand}</Cobrand>"
131
- ret += "<BrowserID>#{@browser_id}</BrowserID>"
132
- ret += "<SessionID>#{@session_id}</SessionID>"
133
- ret += "<Test>#{@test}</Test>"
134
- ret += "<EmailAddress>#{@email_address}</EmailAddress>"
135
- ret += "<SearchName>#{@search_name}</SearchName>"
136
- ret += "<SearchParameters>"
137
- ret += "<BooleanOperator>#{@boolean_operator}</BooleanOperator>"
138
- ret += "<Category>#{@category}</Category>"
139
- ret += "<EducationCode>#{@education_code}</EducationCode>"
140
- ret += "<SpecificEducation>#{@specific_education}</SpecificEducation>"
141
- ret += "<EmpType>#{@emp_type}</EmpType>"
142
- ret += "<ExcludeCompanyNames>#{@exclude_company_names}</ExcludeCompanyNames>"
143
- ret += "<ExcludeJobTitles>#{@exclude_job_titles}</ExcludeJobTitles>"
144
- ret += "<ExcludeNational>#{@exclude_national}</ExcludeNational>"
145
- ret += "<IndustryCodes>#{@industry_codes}</IndustryCodes>"
146
- ret += "<Keywords>#{@keywords}</Keywords>"
147
- ret += "<OrderBy>#{@order_by}</OrderBy>"
148
- ret += "<OrderDirection>#{@order_direction}</OrderDirection>"
149
- ret += "<Radius>#{@radius}</Radius>"
150
- ret += "<PayHigh>#{@pay_high}</PayHigh>"
151
- ret += "<PayLow>#{@pay_high}</PayLow>"
152
- ret += "<PostedWithin>#{@posted_within}</PostedWithin>"
153
- ret += "<PayInfoOnly>#{@pay_info_only}</PayInfoOnly>"
154
- ret += "<Location>#{@location}</Location>"
155
- ret += "<JobCategory>#{@job_category}</JobCategory>"
156
- ret += "<Company>#{@company}</Company>"
157
- ret += "<City>#{@city}</City>"
158
- ret += "<State>#{@state}</State>"
159
- ret += "<Country>#{@country}</Country>"
160
- ret += "</SearchParameters>"
161
- ret += "<IsDailyEmail>#{@is_daily_email.upcase}</IsDailyEmail>"
162
- ret += "<DeveloperKey>#{@dev_key}</DeveloperKey>"
163
- ret += "</Request>"
164
-
165
- ret
166
- end
167
-
168
- def update_to_xml
169
- ret = "<Request>"
170
- ret += "<HostSite>#{@hostsite}</HostSite>"
171
- ret += "<Cobrand>#{@cobrand}</Cobrand>"
172
- ret += "<SearchName>#{@search_name}</SearchName>"
173
- ret += "<SearchParameters>"
174
- ret += "<BooleanOperator>#{@boolean_operator}</BooleanOperator>"
175
- ret += "<Category>#{@category}</Category>"
176
- ret += "<EducationCode>#{@education_code}</EducationCode>"
177
- ret += "<SpecificEducation>#{@specific_education}</SpecificEducation>"
178
- ret += "<EmpType>#{@emp_type}</EmpType>"
179
- ret += "<ExcludeCompanyNames>#{@exclude_company_names}</ExcludeCompanyNames>"
180
- ret += "<ExcludeJobTitles>#{@exclude_job_titles}</ExcludeJobTitles>"
181
- ret += "<ExcludeNational>#{@exclude_national}</ExcludeNational>"
182
- ret += "<IndustryCodes>#{@industry_codes}</IndustryCodes>"
183
- ret += "<Keywords>#{@keywords}</Keywords>"
184
- ret += "<OrderBy>#{@order_by}</OrderBy>"
185
- ret += "<OrderDirection>#{@order_direction}</OrderDirection>"
186
- ret += "<Radius>#{@radius}</Radius>"
187
- ret += "<PayHigh>#{@pay_high}</PayHigh>"
188
- ret += "<PayLow>#{@pay_high}</PayLow>"
189
- ret += "<PostedWithin>#{@posted_within}</PostedWithin>"
190
- ret += "<PayInfoOnly>#{@pay_info_only}</PayInfoOnly>"
191
- ret += "<Location>#{@location}</Location>"
192
- ret += "<JobCategory>#{@job_category}</JobCategory>"
193
- ret += "<Company>#{@company}</Company>"
194
- ret += "<City>#{@city}</City>"
195
- ret += "<State>#{@state}</State>"
196
- ret += "<Country>#{@country}</Country>"
197
- ret += "</SearchParameters>"
198
- ret += "<IsDailyEmail>#{@is_daily_email}</IsDailyEmail>"
199
- ret += "<ExternalID>#{@external_id}</ExternalID>"
200
- ret += "<ExternalUserID>#{@external_user_id}</ExternalUserID>"
201
- ret += "<DeveloperKey>#{@dev_key}</DeveloperKey>"
202
- ret += "</Request>"
203
-
204
- ret
205
- end
206
-
207
- def delete_to_xml
208
- ret = "<Request>"
209
- ret += "<HostSite>#{@hostsite}</HostSite>"
210
- ret += "<ExternalID>#{@external_id}</ExternalID>"
211
- ret += "<ExternalUserID>#{@external_user_id}</ExternalUserID>"
212
- ret += "<DeveloperKey>#{@dev_key}</DeveloperKey>"
213
- ret += "</Request>"
214
-
215
- ret
216
- end
217
-
218
- def delete_anon_to_xml
219
- ret = "<Request>"
220
- ret += "<DeveloperKey>#{@dev_key}</DeveloperKey>"
221
- ret += "<ExternalID>#{@external_id}</ExternalID>"
222
- ret += "<Test>#{@test}</Test>"
223
- ret += "</Request>"
224
-
225
- ret
226
- end
227
- end
228
- end