Permalink
Browse files

README

  • Loading branch information...
1 parent 24ad697 commit a3e92231b29a9b88b61c1583f437d2d5c158f871 @dlitvakb dlitvakb committed Mar 7, 2013
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
View
@@ -28,3 +28,17 @@ api.delete("/zones/pull.json/1234")
# To purge a file (robots.txt) from cache
api.delete("/zones/pull.json/1234/cache", {"file" => "/robots.txt"})
```
+
+### We now have a shortcut for Purge Calls!
+```ruby
+zone_id = 12345
+
+# Purge Zone
+api.purge(zone_id)
+
+# Purge File
+api.purge(zone_id, '/some_file')
+
+# Purge Files
+api.purge(zone_id, ['/some_file', '/another_file'])
+```

0 comments on commit a3e9223

Please sign in to comment.