class AbPanel::Mixpanel::Config

Public Class Methods

config() click to toggle source
# File lib/ab_panel/mixpanel.rb, line 53
def self.config
  @settings ||= load_config
end
environments() click to toggle source
# File lib/ab_panel/mixpanel.rb, line 49
def self.environments
  config.keys
end
token() click to toggle source
# File lib/ab_panel/mixpanel.rb, line 45
def self.token
  config[Rails.env]['token']
end

Private Class Methods

load_config() click to toggle source
# File lib/ab_panel/mixpanel.rb, line 59
def self.load_config
  file = File.read(File.join(Rails.root, 'config', 'mixpanel.yml'))
  YAML.load(file)
end