Class: RbRotate::Mail

Inherits:
Object show all
Defined in:
lib/rb.rotate/mail.rb

Overview

Mail sender.

Constant Summary collapse

@@pony =

Pony class for delivering.

nil

Class Method Summary collapse

Class Method Details

.ponyObject

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