Class: PuavoRest::Mailer
- Inherits:
-
Object
- Object
- PuavoRest::Mailer
- Defined in:
- lib/mailer.rb
Instance Method Summary (collapse)
-
- (Mailer) initialize
constructor
A new instance of Mailer.
- - (Object) options
- - (Object) send(args)
Constructor Details
- (Mailer) initialize
Returns a new instance of Mailer
7 8 9 10 11 12 13 |
# File 'lib/mailer.rb', line 7 def initialize if CONFIG["password_management"] @options = { :via => :smtp } @options.merge!(CONFIG["password_management"]["smtp"]) @options.recursive_symbolize_keys! end end |
Instance Method Details
- (Object) options
20 21 22 |
# File 'lib/mailer.rb', line 20 def @options end |
- (Object) send(args)
15 16 17 18 |
# File 'lib/mailer.rb', line 15 def send(args) = args.merge(@options) Pony.mail() end |