Module: AngellistApi::Client::StatusUpdates
- Included in:
- AngellistApi::Client
- Defined in:
- lib/angellist_api/client/status_updates.rb
Overview
Defines methods related to URLs
Instance Method Summary collapse
-
#delete_status_updates(id) ⇒ Object
Destroys the specified status update belonging to the authenticated user or to a startup the authenticated user is a team member of.
-
#get_status_updates(options = {}) ⇒ Object
Return status updates from the given user or startup.
-
#post_status_updates(options = {}) ⇒ Object
Creates a status update for the authenticated user or for a startup the authenticated user is a team member of.
Instance Method Details
#delete_status_updates(id) ⇒ Object
Destroys the specified status update belonging to the authenticated user or to a startup the authenticated user is a team member of. Returns the destroyed status update on success, or an error on failure.
55 56 57 |
# File 'lib/angellist_api/client/status_updates.rb', line 55 def delete_status_updates(id) delete("1/status_updates/#{id}") end |
#get_status_updates(options = {}) ⇒ Object
Return status updates from the given user or startup. If neither is specified, the authenticated user is used. Status updates are paginated and ordered by most recent first.
22 23 24 |
# File 'lib/angellist_api/client/status_updates.rb', line 22 def get_status_updates(={}) get("1/status_updates", ) end |
#post_status_updates(options = {}) ⇒ Object
Creates a status update for the authenticated user or for a startup the authenticated user is a team member of. Returns the new status update on success, or an error on failure.
41 42 43 |
# File 'lib/angellist_api/client/status_updates.rb', line 41 def post_status_updates(={}) post("1/status_updates", ) end |