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, RealStrategy, Resource
Constant Summary collapse
- VERSION =
"0.0.9"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
-
.strategy ⇒ Object
Returns the value of attribute strategy.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
21 22 23 |
# File 'lib/mailstro.rb', line 21 def configuration @configuration end |
.strategy ⇒ Object
Returns the value of attribute strategy.
21 22 23 |
# File 'lib/mailstro.rb', line 21 def strategy @strategy end |
Class Method Details
.configure ⇒ Object
27 28 29 |
# File 'lib/mailstro.rb', line 27 def self.configure yield(@configuration) && @configuration.validate! end |
.deliver(options) ⇒ Object
31 32 33 |
# File 'lib/mailstro.rb', line 31 def self.deliver() @strategy.deliver() end |
.has_delivered?(template_name) ⇒ Boolean
35 36 37 |
# File 'lib/mailstro.rb', line 35 def self.has_delivered?(template_name) TestStrategy.has_delivered?(template_name) end |