lib/app_monit/config.rb in app_monit-0.0.1 vs lib/app_monit/config.rb in app_monit-0.0.2
- old
+ new
@@ -1,9 +1,9 @@
module AppMonit
class Config
class << self
- attr_writer :api_key, :env, :end_point
+ attr_writer :api_key, :env, :end_point, :fail_silent
def api_key
@api_key || raise(ApiKeyNotSetError.new("Please set your API key"))
end
@@ -11,9 +11,13 @@
@env || "development"
end
def end_point
@end_point || "http://api.appmon.it"
+ end
+
+ def fail_silent
+ @fail_silent || false
end
end
end
end