Class: Mandrill::Tags
- Inherits:
-
Object
- Object
- Mandrill::Tags
- Defined in:
- lib/mandrill/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#all_time_series ⇒ Array
Return the recent history (hourly stats for the last 30 days) for all tags.
-
#info(tag) ⇒ Hash
Return more detailed information about a single tag, including aggregates of recent stats.
-
#initialize(master) ⇒ Tags
constructor
A new instance of Tags.
-
#list ⇒ Array
Return all of the user-defined tag information.
-
#time_series(tag) ⇒ Array
Return the recent history (hourly stats for the last 30 days) for a tag.
Constructor Details
#initialize(master) ⇒ Tags
Returns a new instance of Tags.
292 293 294 |
# File 'lib/mandrill/api.rb', line 292 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
290 291 292 |
# File 'lib/mandrill/api.rb', line 290 def master @master end |
Instance Method Details
#all_time_series ⇒ Array
Return the recent history (hourly stats for the last 30 days) for all tags
418 419 420 421 |
# File 'lib/mandrill/api.rb', line 418 def all_time_series() _params = {} return @master.call 'tags/all-time-series', _params end |
#info(tag) ⇒ Hash
Return more detailed information about a single tag, including aggregates of recent stats
381 382 383 384 |
# File 'lib/mandrill/api.rb', line 381 def info(tag) _params = {:tag => tag} return @master.call 'tags/info', _params end |
#list ⇒ Array
Return all of the user-defined tag information
308 309 310 311 |
# File 'lib/mandrill/api.rb', line 308 def list() _params = {} return @master.call 'tags/list', _params end |
#time_series(tag) ⇒ Array
Return the recent history (hourly stats for the last 30 days) for a tag
400 401 402 403 |
# File 'lib/mandrill/api.rb', line 400 def time_series(tag) _params = {:tag => tag} return @master.call 'tags/time-series', _params end |