module AppMonit class Config class << self attr_writer :api_key, :env, :end_point, :fail_silent, :enabled def api_key @api_key || raise(ApiKeyNotSetError.new("Please set your API key")) end def env @env || "development" end def end_point @end_point || "https://api.appmon.it" end def fail_silent @fail_silent || false end def enabled? @enabled.nil? ? env != "test" : @enabled end end end end