Class: CARPS::Player::Mailer
- Defined in:
- lib/carps/service/player/mailer.rb
Overview
A bridge between the Player mod and CARPS
Instance Method Summary collapse
-
#check(type) ⇒ Object
Check for mail from the dm.
-
#initialize(dm, mailer, conf) ⇒ Mailer
constructor
Create from the email address of the dungeon master, a mailer, and a configuration file.
-
#relay(message) ⇒ Object
Send mail to the dm.
Methods inherited from ModMailer
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 @mailer.send @dm, end |