- def initialize()
- cfg = Configuration.new()
- @db_host = cfg.davical_dbhost
- @db_port = cfg.davical_dbport
- @db_opts = cfg.davical_dbopts
- @db_tty = cfg.davical_dbtty
- @db_name = cfg.davical_dbname
- @db_user = cfg.davical_dbuser
- @db_pass = cfg.davical_dbpass
+ # Initialize this DAViCal {Plugin} with values in *cfg*.
+ #
+ # @param cfg [Configuration] the configuration for this plugin.
+ #
+ def initialize(cfg)
+ @db_hash = {
+ :host => cfg.davical_dbhost,
+ :port => cfg.davical_dbport,
+ :options => cfg.davical_dbopts,
+ :tty => cfg.davical_dbtty,
+ :dbname => cfg.davical_dbname,
+ :user => cfg.davical_dbuser,
+ :password => cfg.davical_dbpass }