mandrill-api 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/mandrill/api.rb +17 -0
  2. metadata +2 -2
@@ -310,6 +310,23 @@ module Mandrill
310
310
  return @master.call 'tags/list', _params
311
311
  end
312
312
 
313
+ # Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this operation, so use it carefully.
314
+ # @param [String] tag a tag name
315
+ # @return [Hash] the tag that was deleted
316
+ # - [String] tag the actual tag as a string
317
+ # - [Integer] sent the total number of messages sent with this tag
318
+ # - [Integer] hard_bounces the total number of hard bounces by messages with this tag
319
+ # - [Integer] soft_bounces the total number of soft bounces by messages with this tag
320
+ # - [Integer] rejects the total number of rejected messages with this tag
321
+ # - [Integer] complaints the total number of spam complaints received for messages with this tag
322
+ # - [Integer] unsubs the total number of unsubscribe requests received for messages with this tag
323
+ # - [Integer] opens the total number of times messages with this tag have been opened
324
+ # - [Integer] clicks the total number of times tracked URLs in messages with this tag have been clicked
325
+ def delete(tag)
326
+ _params = {:tag => tag}
327
+ return @master.call 'tags/delete', _params
328
+ end
329
+
313
330
  # Return more detailed information about a single tag, including aggregates of recent stats
314
331
  # @param [String] tag an existing tag name
315
332
  # @return [Hash] the detailed information on the tag
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mandrill-api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.9
5
+ version: 1.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mandrill Devs
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-10-22 00:00:00 +00:00
13
+ date: 2012-12-05 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency