Class: CARPS::ModMailer

Inherits:
Object
  • Object
show all
Includes:
DRbUndumped
Defined in:
lib/carps/service/start/mailer.rb

Overview

ModMailer acts as a bridge between the Mod and CARPS

Direct Known Subclasses

DM::Mailer, Player::Mailer

Instance Method Summary collapse

Constructor Details

#initialize(mailer, config) ⇒ ModMailer

Initialize with a mailer and a configuration file

FIXME: Doesn’t use mailer (only subclasses use it)



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

def initialize mailer, config
   @mailer = mailer
   @config = config
end

Instance Method Details

#loadObject

Load a previously saved state



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

def load
   @config.load_mod
end

#save(mod) ⇒ Object

Save the mod



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

def save mod
   @config.save_mod mod
end