Module: Mailstro
- Defined in:
- lib/mailstro.rb,
lib/mailstro/error.rb,
lib/mailstro/version.rb,
lib/mailstro/delivery.rb,
lib/mailstro/resource.rb,
lib/mailstro/configuration.rb,
lib/mailstro/test_strategy.rb,
lib/mailstro/middleware/response/raise_error.rb
Defined Under Namespace
Modules: Error, Middleware, TestStrategy Classes: Configuration, Delivery, ProductionStrategy, Resource
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
-
.strategy ⇒ Object
Returns the value of attribute strategy.
Class Method Summary collapse
- .configure ⇒ Object
- .deliver(email_name, options) ⇒ Object
- .has_delivered?(email_name, options = {}) ⇒ Boolean
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
22 23 24 |
# File 'lib/mailstro.rb', line 22 def configuration @configuration end |
.strategy ⇒ Object
Returns the value of attribute strategy.
22 23 24 |
# File 'lib/mailstro.rb', line 22 def strategy @strategy end |
Class Method Details
.configure ⇒ Object
28 29 30 |
# File 'lib/mailstro.rb', line 28 def self.configure yield(@configuration) && @configuration.validate! end |
.deliver(email_name, options) ⇒ Object
32 33 34 |
# File 'lib/mailstro.rb', line 32 def self.deliver(email_name, ) @strategy.deliver(email_name, ) end |
.has_delivered?(email_name, options = {}) ⇒ Boolean
36 37 38 |
# File 'lib/mailstro.rb', line 36 def self.has_delivered?(email_name, ={}) TestStrategy.has_delivered?(email_name, ) end |