Class: EventEngine::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/event_engine/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
16
17
18
# File 'lib/event_engine/configuration.rb', line 13

def initialize
  @logger = defined?(Rails) ? Rails.logger : Logger.new($stdout)
  @schema_path = "db/event_schema.json"
  @rules_path = "config/event_rules.yml"
  @publisher_schema_paths = []
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/event_engine/configuration.rb', line 3

def logger
  @logger
end

#metadata_defaultsObject

Returns the value of attribute metadata_defaults.



5
6
7
# File 'lib/event_engine/configuration.rb', line 5

def 
  @metadata_defaults
end

#publisher_schema_pathsObject

Returns the value of attribute publisher_schema_paths.



11
12
13
# File 'lib/event_engine/configuration.rb', line 11

def publisher_schema_paths
  @publisher_schema_paths
end

#rules_pathObject

Returns the value of attribute rules_path.



9
10
11
# File 'lib/event_engine/configuration.rb', line 9

def rules_path
  @rules_path
end

#schema_pathObject

Returns the value of attribute schema_path.



7
8
9
# File 'lib/event_engine/configuration.rb', line 7

def schema_path
  @schema_path
end