Class: Mandrill::Senders
- Inherits:
-
Object
- Object
- Mandrill::Senders
- Defined in:
- lib/mandrill/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#domains ⇒ Array
Returns the sender domains that have been added to this account.
-
#info(address) ⇒ Hash
Return more detailed information about a single sender, including aggregates of recent stats.
-
#initialize(master) ⇒ Senders
constructor
A new instance of Senders.
-
#list ⇒ Array
Return the senders that have tried to use this account.
-
#time_series(address) ⇒ Array
Return the recent history (hourly stats for the last 30 days) for a sender.
Constructor Details
#initialize(master) ⇒ Senders
Returns a new instance of Senders.
741 742 743 |
# File 'lib/mandrill/api.rb', line 741 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
739 740 741 |
# File 'lib/mandrill/api.rb', line 739 def master @master end |
Instance Method Details
#domains ⇒ Array
Returns the sender domains that have been added to this account.
768 769 770 771 |
# File 'lib/mandrill/api.rb', line 768 def domains() _params = {} return @master.call 'senders/domains', _params end |
#info(address) ⇒ Hash
Return more detailed information about a single sender, including aggregates of recent stats
842 843 844 845 |
# File 'lib/mandrill/api.rb', line 842 def info(address) _params = {:address => address} return @master.call 'senders/info', _params end |
#list ⇒ Array
Return the senders that have tried to use this account.
758 759 760 761 |
# File 'lib/mandrill/api.rb', line 758 def list() _params = {} return @master.call 'senders/list', _params end |
#time_series(address) ⇒ Array
Return the recent history (hourly stats for the last 30 days) for a sender
861 862 863 864 |
# File 'lib/mandrill/api.rb', line 861 def time_series(address) _params = {:address => address} return @master.call 'senders/time-series', _params end |