Class: CARPS::ModMailer
- Inherits:
-
Object
- Object
- CARPS::ModMailer
- Includes:
- DRbUndumped
- Defined in:
- lib/carps/service/start/mailer.rb
Overview
ModMailer acts as a bridge between the Mod and CARPS
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(mailer, config) ⇒ ModMailer
constructor
Initialize with a mailer and a configuration file.
-
#load ⇒ Object
Load a previously saved state.
-
#save(mod) ⇒ Object
Save the mod.
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
#load ⇒ Object
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 |