Module: AngellistApi::Client::Tags
- Included in:
- AngellistApi::Client
- Defined in:
- lib/angellist_api/client/tags.rb
Overview
Defines methods related to URLs.
Instance Method Summary collapse
-
#get_tag(id) ⇒ Object
Get information on a tag.
-
#get_tag_children(id, options = {}) ⇒ Object
Returns children of the given tag.
-
#get_tag_parents(id, options = {}) ⇒ Object
Returns parents of the given tag.
-
#get_tag_startups(id, options = {}) ⇒ Object
Returns startups that are tagged with the given tag or a child of the given tag.
Instance Method Details
#get_tag(id) ⇒ Object
Get information on a tag.
15 16 17 |
# File 'lib/angellist_api/client/tags.rb', line 15 def get_tag(id) get("1/tags/#{id}") end |
#get_tag_children(id, options = {}) ⇒ Object
Returns children of the given tag. Market and location tags form a Directed Acyclic Graph. Results are paginated and ordered by id descending.
32 33 34 |
# File 'lib/angellist_api/client/tags.rb', line 32 def get_tag_children(id, ={}) get("1/tags/#{id}/children", ) end |
#get_tag_parents(id, options = {}) ⇒ Object
Returns parents of the given tag. For more details, see the documentation for GET /tags/:id/children.
48 49 50 |
# File 'lib/angellist_api/client/tags.rb', line 48 def get_tag_parents(id, ={}) get("1/tags/#{id}/parents", ) end |
#get_tag_startups(id, options = {}) ⇒ Object
Returns startups that are tagged with the given tag or a child of the given tag. Results are paginated and ordered according to the order parameter.
68 69 70 |
# File 'lib/angellist_api/client/tags.rb', line 68 def get_tag_startups(id, = {}) get("1/tags/#{id}/startups", ) end |