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.
1084 1085 1086 |
# File 'lib/mandrill/api.rb', line 1084 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
1082 1083 1084 |
# File 'lib/mandrill/api.rb', line 1082 def master @master end |
Instance Method Details
#domains ⇒ Array
Returns the sender domains that have been added to this account.
1111 1112 1113 1114 |
# File 'lib/mandrill/api.rb', line 1111 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
1185 1186 1187 1188 |
# File 'lib/mandrill/api.rb', line 1185 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.
1101 1102 1103 1104 |
# File 'lib/mandrill/api.rb', line 1101 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
1204 1205 1206 1207 |
# File 'lib/mandrill/api.rb', line 1204 def time_series(address) _params = {:address => address} return @master.call 'senders/time-series', _params end |