-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add section on deleting a resource to docs
- Loading branch information
Doug Black
committed
Sep 25, 2013
1 parent
10fdaa8
commit fdcdade
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fdcdade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick note on this: the word retrieve may be misleading. There is no server round trip when #get is called. So if you happen to have a deletable object's sid already, calling something like @client.account.recordings.get("RC1213").delete() only performs a single HTTP round trip for the DELETE request.
Technically it is accurate as written, since a ruby object is "retrieved" when #get is called, but most people may think that this does more HTTP work than necessary.
fdcdade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I'll reword.