lib/app_monit/config.rb in app_monit-0.0.7 vs lib/app_monit/config.rb in app_monit-0.0.8

- old
+ new

@@ -1,9 +1,9 @@ module AppMonit class Config class << self - attr_writer :api_key, :env, :end_point, :fail_silent, :enabled, :timeout + attr_writer :api_key, :env, :end_point, :fail_silent, :enabled, :timeout, :version 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 || "https://api.appmon.it" + end + + def version + @version || "v1" end def fail_silent @fail_silent || false end