Class: LinkedIn::Jobs
- Inherits:
-
APIResource
- Object
- APIResource
- LinkedIn::Jobs
- Defined in:
- lib/linked_in/jobs.rb
Overview
Jobs API
The following API actions do not have corresponding methods in this module
- DELETE a Job Bookmark
Instance Method Summary collapse
-
#add_job_bookmark(job_id) ⇒ void
Create a job bookmark for the authenticated user.
-
#job(options = {}) ⇒ LinkedIn::Mash
Retrieve likes on a particular company update:.
-
#job_bookmarks(options = {}) ⇒ LinkedIn::Mash
Retrieve the current members' job bookmarks.
-
#job_suggestions(options = {}) ⇒ LinkedIn::Mash
Retrieve job suggestions for the current user.
Methods inherited from APIResource
Constructor Details
This class inherits a constructor from LinkedIn::APIResource
Instance Method Details
#add_job_bookmark(job_id) ⇒ void
This method returns an undefined value.
Create a job bookmark for the authenticated user
52 53 54 55 |
# File 'lib/linked_in/jobs.rb', line 52 def add_job_bookmark(job_id) path = "/people/~/job-bookmarks" post(path, {job: {id: job_id}}) end |
#job(options = {}) ⇒ LinkedIn::Mash
Retrieve likes on a particular company update:
19 20 21 22 |
# File 'lib/linked_in/jobs.rb', line 19 def job( = {}) path = jobs_path() get(path, ) end |
#job_bookmarks(options = {}) ⇒ LinkedIn::Mash
Retrieve the current members' job bookmarks
30 31 32 33 |
# File 'lib/linked_in/jobs.rb', line 30 def job_bookmarks( = {}) path = "#{profile_path()}/job-bookmarks" get(path, ) end |
#job_suggestions(options = {}) ⇒ LinkedIn::Mash
Retrieve job suggestions for the current user
41 42 43 44 |
# File 'lib/linked_in/jobs.rb', line 41 def job_suggestions( = {}) path = "#{profile_path()}/suggestions/job-suggestions" get(path, ) end |