Class: Mandrill::Rejects
- Inherits:
-
Object
- Object
- Mandrill::Rejects
- Defined in:
- lib/mandrill/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#delete(email) ⇒ Hash
Deletes an email rejection.
-
#initialize(master) ⇒ Rejects
constructor
A new instance of Rejects.
-
#list(email = nil, include_expired = false) ⇒ Array
Retrieves your email rejection blacklist.
Constructor Details
#initialize(master) ⇒ Rejects
Returns a new instance of Rejects.
264 265 266 |
# File 'lib/mandrill/api.rb', line 264 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
262 263 264 |
# File 'lib/mandrill/api.rb', line 262 def master @master end |
Instance Method Details
#delete(email) ⇒ Hash
Deletes an email rejection. There is no limit to how many rejections you can remove from your blacklist, but keep in mind that each deletion has an affect on your reputation.
289 290 291 292 |
# File 'lib/mandrill/api.rb', line 289 def delete(email) _params = {:email => email} return @master.call 'rejects/delete', _params end |
#list(email = nil, include_expired = false) ⇒ Array
Retrieves your email rejection blacklist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them.
279 280 281 282 |
# File 'lib/mandrill/api.rb', line 279 def list(email=nil, include_expired=false) _params = {:email => email, :include_expired => include_expired} return @master.call 'rejects/list', _params end |