Class: Slack::Mail::Configurator
- Inherits:
-
Object
- Object
- Slack::Mail::Configurator
- Defined in:
- lib/slack/mail/config.rb
Instance Attribute Summary collapse
-
#deliverer ⇒ Object
readonly
Returns the value of attribute deliverer.
Instance Method Summary collapse
- #deliver_with(name, *args) ⇒ Object
-
#initialize ⇒ Configurator
constructor
A new instance of Configurator.
Constructor Details
#initialize ⇒ Configurator
Returns a new instance of Configurator.
18 19 20 |
# File 'lib/slack/mail/config.rb', line 18 def initialize @deliverer = Slack::Mail::Store.new end |
Instance Attribute Details
#deliverer ⇒ Object (readonly)
Returns the value of attribute deliverer.
16 17 18 |
# File 'lib/slack/mail/config.rb', line 16 def deliverer @deliverer end |
Instance Method Details
#deliver_with(name, *args) ⇒ Object
22 23 24 |
# File 'lib/slack/mail/config.rb', line 22 def deliver_with name, *args @deliverer = Slack::Mail.deliverers.fetch(name).new *args end |