cb-api 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cb/models/implementations/job.rb +49 -50
- data/lib/cb/version.rb +1 -1
- metadata +1 -1
@@ -24,6 +24,55 @@ module Cb
|
|
24
24
|
super(args)
|
25
25
|
end
|
26
26
|
|
27
|
+
|
28
|
+
def find_company
|
29
|
+
@company ||= Cb::CompanyApi.find_for self
|
30
|
+
end
|
31
|
+
|
32
|
+
def external_application?
|
33
|
+
@external_application.downcase == 'true'
|
34
|
+
end
|
35
|
+
|
36
|
+
def relocation_covered?
|
37
|
+
@relocation_covered.downcase == 'true'
|
38
|
+
end
|
39
|
+
|
40
|
+
def manages_others?
|
41
|
+
@manages_others.downcase == 'true'
|
42
|
+
end
|
43
|
+
|
44
|
+
def screener_apply?
|
45
|
+
@is_screener_apply.downcase == 'true'
|
46
|
+
end
|
47
|
+
|
48
|
+
def shared_job?
|
49
|
+
@is_shared_job.downcase == 'true'
|
50
|
+
end
|
51
|
+
|
52
|
+
def can_be_quick_applied?
|
53
|
+
@can_be_quick_applied.downcase == 'true'
|
54
|
+
end
|
55
|
+
|
56
|
+
def has_questionnaire?
|
57
|
+
@has_questionnaire.downcase == 'true'
|
58
|
+
end
|
59
|
+
|
60
|
+
def city
|
61
|
+
if @city.empty?
|
62
|
+
return @location['City']
|
63
|
+
else
|
64
|
+
return @city
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def state
|
69
|
+
if @state.empty?
|
70
|
+
return @location['State']
|
71
|
+
else
|
72
|
+
return @state
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
27
76
|
protected
|
28
77
|
|
29
78
|
def required_fields
|
@@ -126,56 +175,6 @@ module Cb
|
|
126
175
|
|
127
176
|
end
|
128
177
|
|
129
|
-
def find_company
|
130
|
-
@company ||= Cb::CompanyApi.find_for self
|
131
|
-
end
|
132
|
-
|
133
|
-
def external_application?
|
134
|
-
@external_application.downcase == 'true'
|
135
|
-
end
|
136
|
-
|
137
|
-
def relocation_covered?
|
138
|
-
@relocation_covered.downcase == 'true'
|
139
|
-
end
|
140
|
-
|
141
|
-
def manages_others?
|
142
|
-
@manages_others.downcase == 'true'
|
143
|
-
end
|
144
|
-
|
145
|
-
def screener_apply?
|
146
|
-
@is_screener_apply.downcase == 'true'
|
147
|
-
end
|
148
|
-
|
149
|
-
def shared_job?
|
150
|
-
@is_shared_job.downcase == 'true'
|
151
|
-
end
|
152
|
-
|
153
|
-
def can_be_quick_applied?
|
154
|
-
@can_be_quick_applied.downcase == 'true'
|
155
|
-
end
|
156
|
-
|
157
|
-
def has_questionnaire?
|
158
|
-
@has_questionnaire.downcase == 'true'
|
159
|
-
end
|
160
|
-
|
161
|
-
def city
|
162
|
-
if @city.empty?
|
163
|
-
return @location['City']
|
164
|
-
else
|
165
|
-
return @city
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
def state
|
170
|
-
if @state.empty?
|
171
|
-
return @location['State']
|
172
|
-
else
|
173
|
-
return @state
|
174
|
-
end
|
175
|
-
end
|
176
|
-
|
177
|
-
protected
|
178
|
-
|
179
178
|
def load_extra_fields(args)
|
180
179
|
#for internal use only :)
|
181
180
|
end
|
data/lib/cb/version.rb
CHANGED