Class: CARPS::Player::Mailer

Inherits:
ModMailer show all
Defined in:
lib/carps/service/player/mailer.rb

Overview

A bridge between the Player mod and CARPS

Instance Method Summary collapse

Methods inherited from ModMailer

#load, #save

Constructor Details

#initialize(dm, mailer, conf) ⇒ Mailer

Create from the email address of the dungeon master, a mailer, and a configuration file



30
31
32
33
# File 'lib/carps/service/player/mailer.rb', line 30

def initialize dm, mailer, conf
   @dm = dm
   super mailer, conf
end

Instance Method Details

#check(type) ⇒ Object

Check for mail from the dm



36
37
38
# File 'lib/carps/service/player/mailer.rb', line 36

def check type
   @mailer.check type, @dm
end

#relay(message) ⇒ Object

Send mail to the dm



41
42
43
# File 'lib/carps/service/player/mailer.rb', line 41

def relay message
   @mailer.send @dm, message
end