Class: Cb::Models::RecommendedJob

Inherits:
ApiResponseModel show all
Defined in:
lib/cb/models/implementations/recommended_job.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResponseModel

#api_response

Instance Method Summary collapse

Methods inherited from ApiResponseModel

#initialize

Constructor Details

This class inherits a constructor from Cb::Models::ApiResponseModel

Instance Attribute Details

#admin_area_1Object (readonly)

Returns the value of attribute admin_area_1.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def admin_area_1
  @admin_area_1
end

#apply_requirementsObject (readonly)

Returns the value of attribute apply_requirements.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def apply_requirements
  @apply_requirements
end

#categoriesObject (readonly)

Returns the value of attribute categories.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def categories
  @categories
end

#cityObject (readonly)

Returns the value of attribute city.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def city
  @city
end

#company_idObject (readonly)

Returns the value of attribute company_id.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def company_id
  @company_id
end

#company_nameObject (readonly)

Returns the value of attribute company_name.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def company_name
  @company_name
end

#educations_requiredObject (readonly)

Returns the value of attribute educations_required.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def educations_required
  @educations_required
end

#employment_typeObject (readonly)

Returns the value of attribute employment_type.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def employment_type
  @employment_type
end

#experience_requiredObject (readonly)

Returns the value of attribute experience_required.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def experience_required
  @experience_required
end

#idObject (readonly)

Returns the value of attribute id.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def id
  @id
end

#job_details_urlObject (readonly)

Returns the value of attribute job_details_url.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def job_details_url
  @job_details_url
end

#job_titleObject (readonly)

Returns the value of attribute job_title.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def job_title
  @job_title
end

#latitudeObject (readonly)

Returns the value of attribute latitude.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def latitude
  @latitude
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def longitude
  @longitude
end

#matcher_idObject (readonly)

Returns the value of attribute matcher_id.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def matcher_id
  @matcher_id
end

#payObject (readonly)

Returns the value of attribute pay.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def pay
  @pay
end

#postedObject (readonly)

Returns the value of attribute posted.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def posted
  @posted
end

#skillsObject (readonly)

Returns the value of attribute skills.



14
15
16
# File 'lib/cb/models/implementations/recommended_job.rb', line 14

def skills
  @skills
end

Instance Method Details

#required_fieldsObject



20
21
22
# File 'lib/cb/models/implementations/recommended_job.rb', line 20

def required_fields
  [id, job_title]
end

#set_model_propertiesObject



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/cb/models/implementations/recommended_job.rb', line 24

def set_model_properties
  args = api_response
  @id = args['id']
  @job_title = args['job_title']
  @city = args['city']
  @admin_area_1 = args['admin_area_1']
  @latitude = args['latitude']
  @longitude = args['longitude']
  @company_name = args['company_name']
  @company_id = args['company_id']
  @job_details_url = args['job_details_url']
  @employment_type = args['employment_type']
  @educations_required = args['educations_required']
  @experience_required = args['experience_required']
  @matcher_id = args['matcher_id']
  @pay = args['pay']
  @categories = args['categories']
  @apply_requirements = args['apply_requirements']
  @skills = args['skills']
  @posted = args['posted']
end