lib/sentinel_api/configuration.rb in logkeeper_api-0.0.7 vs lib/sentinel_api/configuration.rb in logkeeper_api-0.0.8
- old
+ new
@@ -2,16 +2,19 @@
module SentinelApi
class Configuration
attr_accessor :uri
attr_accessor :level
attr_accessor :method
+ attr_accessor :project_name
DEFAULT_URI = (ENV['SENTINEL_API_URI'] || 'http://localhost:3000/reports').freeze
DEFAULT_METHOD = (ENV['SENTINEL_API_METHOD'] || 'post').freeze
+ DEFAULT_PROJECT_NAME = "Sentinel Project".freeze
def initialize
@uri = DEFAULT_URI
@method = DEFAULT_METHOD
+ @project_name = DEFAULT_PROJECT_NAME
end
def merge(options)
new_configuration = clone
new_configuration.merge!(options)