Module: AngellistApi::Client::Jobs
- Included in:
- AngellistApi::Client
- Defined in:
- lib/angellist_api/client/jobs.rb
Overview
Defines methods related to URLs
Instance Method Summary collapse
-
#get_job(id) ⇒ Object
Shows details for a specific job, including the startup that posted it.
-
#get_jobs(options = {}) ⇒ Object
Returns all jobs that have been posted.
-
#get_startup_jobs(id) ⇒ Object
For a given startup id, returns all the jobs that have been posted.
-
#get_tag_jobs(id, options = {}) ⇒ Object
For a given LocationTag id, returns all jobs posted in that tag.
Instance Method Details
#get_job(id) ⇒ Object
Shows details for a specific job, including the startup that posted it.
35 36 37 |
# File 'lib/angellist_api/client/jobs.rb', line 35 def get_job(id) get("1/jobs/#{id}") end |
#get_jobs(options = {}) ⇒ Object
Note:
Pagination metadata does not actually appear to be returned currently, but the page parameter works. Have inquired with AngelList about this.
Returns all jobs that have been posted. Results are paginated and ordered by publish date descending.
23 24 25 |
# File 'lib/angellist_api/client/jobs.rb', line 23 def get_jobs(={}) get("1/jobs", ) end |
#get_startup_jobs(id) ⇒ Object
For a given startup id, returns all the jobs that have been posted.
48 49 50 |
# File 'lib/angellist_api/client/jobs.rb', line 48 def get_startup_jobs(id) get("1/startups/#{id}/jobs") end |
#get_tag_jobs(id, options = {}) ⇒ Object
For a given LocationTag id, returns all jobs posted in that tag.
66 67 68 |
# File 'lib/angellist_api/client/jobs.rb', line 66 def get_tag_jobs(id, ={}) get("1/tags/#{id}/jobs", ) end |