Class: UpdatedMandrill::Tags
- Inherits:
-
Object
- Object
- UpdatedMandrill::Tags
- Defined in:
- lib/updated_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.
-
#delete(tag) ⇒ Hash
Deletes a tag permanently.
-
#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.
607 608 609 |
# File 'lib/updated_mandrill/api.rb', line 607 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
605 606 607 |
# File 'lib/updated_mandrill/api.rb', line 605 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
758 759 760 761 |
# File 'lib/updated_mandrill/api.rb', line 758 def all_time_series() _params = {} return @master.call 'tags/all-time-series', _params end |
#delete(tag) ⇒ Hash
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.
646 647 648 649 |
# File 'lib/updated_mandrill/api.rb', line 646 def delete(tag) _params = {:tag => tag} return @master.call 'tags/delete', _params end |
#info(tag) ⇒ Hash
Return more detailed information about a single tag, including aggregates of recent stats
719 720 721 722 |
# File 'lib/updated_mandrill/api.rb', line 719 def info(tag) _params = {:tag => tag} return @master.call 'tags/info', _params end |
#list ⇒ Array
Return all of the user-defined tag information
626 627 628 629 |
# File 'lib/updated_mandrill/api.rb', line 626 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
739 740 741 742 |
# File 'lib/updated_mandrill/api.rb', line 739 def time_series(tag) _params = {:tag => tag} return @master.call 'tags/time-series', _params end |