cb-api 5.2.0 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cb/models/implementations/job.rb +13 -9
- data/lib/cb/version.rb +1 -1
- metadata +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
module Cb
|
2
2
|
module Models
|
3
|
-
class Job
|
3
|
+
class Job < ApiResponseModel
|
4
4
|
attr_accessor :did, :title, :job_skin, :job_skin_did, :job_branding, :pay, :pay_per, :commission, :bonus, :pay_other,
|
5
5
|
:categories, :category_codes, :degree_required, :experience_required, :travel_required,
|
6
6
|
:industry_codes, :manages_others_code,
|
@@ -21,7 +21,17 @@ module Cb
|
|
21
21
|
:relocation_covered, :manages_others
|
22
22
|
|
23
23
|
def initialize(args = {})
|
24
|
-
|
24
|
+
super(args)
|
25
|
+
end
|
26
|
+
|
27
|
+
protected
|
28
|
+
|
29
|
+
def required_fields
|
30
|
+
[]
|
31
|
+
end
|
32
|
+
|
33
|
+
def set_model_properties
|
34
|
+
args = api_response
|
25
35
|
|
26
36
|
# General
|
27
37
|
@did = args['DID'] || args['JobDID'] || ''
|
@@ -117,13 +127,7 @@ module Cb
|
|
117
127
|
end
|
118
128
|
|
119
129
|
def find_company
|
120
|
-
|
121
|
-
return @company
|
122
|
-
else
|
123
|
-
@company = Cb::CompanyApi.find_for self
|
124
|
-
|
125
|
-
return @company
|
126
|
-
end
|
130
|
+
@company ||= Cb::CompanyApi.find_for self
|
127
131
|
end
|
128
132
|
|
129
133
|
def external_application?
|
data/lib/cb/version.rb
CHANGED