cb-api 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,10 +10,12 @@ module Cb
10
10
  :details_url, :service_url, :similar_jobs_url, :apply_url,
11
11
  :begin_date, :end_date, :posted_date,
12
12
  :relevancy, :state, :city, :zip,
13
- :can_be_quick_applied, :apply_requirements
13
+ :can_be_quick_applied, :apply_requirements,
14
+ :divison, :industry, :location_street_1, :relocation_options, :location_street_2, :display_job_id
14
15
 
15
- attr_writer :external_application, :relocation_covered, :manages_others, :is_screener_apply,
16
- :is_shared_job
16
+ attr_writer :external_application, :is_screener_apply,
17
+ :is_shared_job,
18
+ :relocation_covered, :manages_others
17
19
 
18
20
  ##############################################################
19
21
  ## This general purpose object stores anything having to do
@@ -29,6 +31,8 @@ module Cb
29
31
  @employment_type = args['EmploymentType'] || ''
30
32
  @latitude = args['LocationLatitude'] || ''
31
33
  @longitude = args['LocationLongitude'] || ''
34
+ @location_street_1 = args['LocationStreet1'] || ''
35
+ @location_street_2 = args['LocationStreet2'] || ''
32
36
  @location_formatted = args['LocationFormatted'] || ''
33
37
 
34
38
  # Job Skin Related
@@ -36,6 +40,7 @@ module Cb
36
40
  @job_skin_did = args['JobSkinDID'] || ''
37
41
  @job_branding = @job_skin_did.blank? ? '' : Cb.job_branding.find_by_id(job_skin_did)
38
42
  @job_tracking_url = args['JobTrackingURL'] || ''
43
+ @display_job_id = args['DisplayJobID'] || ''
39
44
 
40
45
  # Compensation
41
46
  @pay = args['PayHighLowFormatted'] || ''
@@ -56,10 +61,13 @@ module Cb
56
61
  # Summary
57
62
  @categories = args['Categories'] || ''
58
63
  @category_codes = args['CategoriesCodes'] || ''
59
- @degree_required = args['DegreeRequiredCode'] || ''
60
- @experience_required = args['ExperienceRequiredCode'] || ''
61
- @travel_required = args['TravelRequiredCode'] || ''
64
+ @degree_required = args['DegreeRequired'] || ''
65
+ @experience_required = args['ExperienceRequired'] || ''
66
+ @travel_required = args['TravelRequired'] || ''
62
67
  @relocation_covered = args['RelocationCovered'] || ''
68
+ @relocation_options = args['RelocationOptions'] || ''
69
+ @division = args['Division'] || ''
70
+ @industry = args['Industry'] || ''
63
71
  @industry_codes = args['IndustryCodes'] || ''
64
72
  @manages_others = args['ManagesOthers'] || ''
65
73
  @manages_others_code = args['ManagesOthersCode'] || ''
@@ -98,6 +106,8 @@ module Cb
98
106
  @zip = args['LocationPostalCode'] || ''
99
107
  @company_name = args['Company']['CompanyName'] unless args['Company'].nil? || args['Company']['CompanyName'].nil?
100
108
  @company_details_url = args['Company']['CompanyDetailsURL'] unless args['Company'].nil? || args['Company']['CompanyDetailsURL'].nil?
109
+
110
+
101
111
  end
102
112
 
103
113
  def find_company
@@ -133,7 +143,7 @@ module Cb
133
143
  def can_be_quick_applied?
134
144
  @can_be_quick_applied.downcase == 'true' ? true : false
135
145
  end
136
-
146
+
137
147
  def city
138
148
  if @city.empty?
139
149
  return @location['City']
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
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: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,7 +19,7 @@ authors:
19
19
  autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
- date: 2013-11-06 00:00:00.000000000 Z
22
+ date: 2013-11-08 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: httparty
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  requirements: []
250
250
  rubyforge_project:
251
- rubygems_version: 1.8.25
251
+ rubygems_version: 1.8.23
252
252
  signing_key:
253
253
  specification_version: 3
254
254
  summary: Ruby wrapper around Careerbuilder Public API.