Class: CampfireBot::AbsenteeCamper::Config::PluginConfig

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/campfire_bot/absentee_camper/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePluginConfig

Returns a new instance of PluginConfig.



16
17
18
# File 'lib/campfire_bot/absentee_camper/config.rb', line 16

def initialize
  self.config = YAML::load(ERB.new(File.read("#{BOT_ROOT}/absentee-camper-config.yml")).result)[BOT_ENVIRONMENT]
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



20
21
22
# File 'lib/campfire_bot/absentee_camper/config.rb', line 20

def config
  @config
end