Module: AngellistApi::Client::Startups
- Included in:
- AngellistApi::Client
- Defined in:
- lib/angellist_api/client/startups.rb
Overview
Defines methods related to URLs
Instance Method Summary collapse
-
#all_startups(options = {}) ⇒ Object
Returns the firehose of companies on AngelList.
-
#get_startup(id) ⇒ Object
Get a startup’s information given an ID.
-
#get_startups(ids) ⇒ Object
Returns up to 50 startups at a time, given an Array of ids.
-
#startup_comments(id) ⇒ Object
Returns the comments on the given startup.
-
#startup_roles(id, options = {}) ⇒ Object
Returns a company’s startup roles.
-
#startup_search(options = {}) ⇒ Object
Search for a startup given a URL slug.
Instance Method Details
#all_startups(options = {}) ⇒ Object
Returns the firehose of companies on AngelList. Results are paginated.
54 55 56 |
# File 'lib/angellist_api/client/startups.rb', line 54 def all_startups(={}) get("1/startups", ) end |
#get_startup(id) ⇒ Object
Get a startup’s information given an ID.
15 16 17 |
# File 'lib/angellist_api/client/startups.rb', line 15 def get_startup(id) get("1/startups/#{id}") end |
#get_startups(ids) ⇒ Object
Returns up to 50 startups at a time, given an Array of ids.
40 41 42 43 |
# File 'lib/angellist_api/client/startups.rb', line 40 def get_startups(ids) params = { :ids => ids.join(',') } get("1/startups/batch", params) end |
#startup_comments(id) ⇒ Object
Returns the comments on the given startup.
28 29 30 |
# File 'lib/angellist_api/client/startups.rb', line 28 def startup_comments(id) get("1/startups/#{id}/comments") end |
#startup_roles(id, options = {}) ⇒ Object
Returns a company’s startup roles. If direction is outgoing, then it returns the companies which the given company is tagged in. If direction is incoming, or omitted, then it returns the users and companies which are tagged in the given company. Results are paginated.
91 92 93 |
# File 'lib/angellist_api/client/startups.rb', line 91 def startup_roles(id, ={}) get("1/startups/#{id}/roles", ) end |
#startup_search(options = {}) ⇒ Object
Search for a startup given a URL slug. Responds like GET /startups/:id.
71 72 73 |
# File 'lib/angellist_api/client/startups.rb', line 71 def startup_search(={}) get("1/startups/search", ) end |