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

Instance Method Details

#get_job(id) ⇒ Object

Shows details for a specific job, including the startup that posted it.

Examples:

Get information for a job.

AngellistApi.get_job(137)

Parameters:

  • id (Integer)

    ID of the job to fetch.



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.

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :page (Integer)

    Specifies the page of results to retrieve.

  • :per_page (Integer) — default: 50

    The number of results to return for a page. Maximum of 50.



23
24
25
# File 'lib/angellist_api/client/jobs.rb', line 23

def get_jobs(options={})
  get("1/jobs", options)
end

#get_startup_jobs(id) ⇒ Object

For a given startup id, returns all the jobs that have been posted.

Examples:

Get jobs for a given startup by ID.

AngellistApi.get_startup_jobs(1234)

Parameters:

  • id (Integer)

    ID of the desired startup.



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.

Examples:

Get jobs tagged San Francisco.

AngellistApi.get_tag_jobs(1692)

Parameters:

  • id (Integer)

    ID of the desired tag.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :page (Integer)

    Specifies the page of results to retrieve.

  • :per_page (Integer) — default: 50

    The number of results to return for a page. Maximum of 50.



66
67
68
# File 'lib/angellist_api/client/jobs.rb', line 66

def get_tag_jobs(id, options={})
  get("1/tags/#{id}/jobs", options)
end