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.
1225 1226 1227 |
# File 'lib/mandrill/api.rb', line 1225 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
1223 1224 1225 |
# File 'lib/mandrill/api.rb', line 1223 def master @master end |
Instance Method Details
#domains ⇒ Array
Returns the sender domains that have been added to this account.
1254 1255 1256 1257 |
# File 'lib/mandrill/api.rb', line 1254 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
1328 1329 1330 1331 |
# File 'lib/mandrill/api.rb', line 1328 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.
1244 1245 1246 1247 |
# File 'lib/mandrill/api.rb', line 1244 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
1347 1348 1349 1350 |
# File 'lib/mandrill/api.rb', line 1347 def time_series(address) _params = {:address => address} return @master.call 'senders/time-series', _params end |