Class: RbRotate::Mail
Overview
Mail sender.
Constant Summary collapse
- @@pony =
Pony class for delivering.
nil
Class Method Summary collapse
-
.pony ⇒ Object
Returns the Pony class (includes if necessary).
-
.send(parameters) ⇒ Object
Sends mail through Pony mail using specified parameters.
Class Method Details
.pony ⇒ Object
Returns the Pony class (includes if necessary).
29 30 31 32 33 34 35 36 |
# File 'lib/rb.rotate/mail.rb', line 29 def self.pony if @@pony.nil? require "pony" @@pony = Pony end return @@pony end |
.send(parameters) ⇒ Object
Sends mail through Pony mail using specified parameters.
21 22 23 |
# File 'lib/rb.rotate/mail.rb', line 21 def self.send(parameters) self::pony.mail(parameters) end |