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.
848 849 850 |
# File 'lib/mandrill/api.rb', line 848 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
846 847 848 |
# File 'lib/mandrill/api.rb', line 846 def master @master end |
Instance Method Details
#domains ⇒ Array
Returns the sender domains that have been added to this account.
875 876 877 878 |
# File 'lib/mandrill/api.rb', line 875 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
949 950 951 952 |
# File 'lib/mandrill/api.rb', line 949 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.
865 866 867 868 |
# File 'lib/mandrill/api.rb', line 865 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
968 969 970 971 |
# File 'lib/mandrill/api.rb', line 968 def time_series(address) _params = {:address => address} return @master.call 'senders/time-series', _params end |