Class: EventEngine::Configuration
- Inherits:
-
Object
- Object
- EventEngine::Configuration
- Defined in:
- lib/event_engine/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#metadata_defaults ⇒ Object
Returns the value of attribute metadata_defaults.
-
#publisher_schema_paths ⇒ Object
Returns the value of attribute publisher_schema_paths.
-
#rules_path ⇒ Object
Returns the value of attribute rules_path.
-
#schema_path ⇒ Object
Returns the value of attribute schema_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/event_engine/configuration.rb', line 3 def logger @logger end |
#metadata_defaults ⇒ Object
Returns the value of attribute metadata_defaults.
5 6 7 |
# File 'lib/event_engine/configuration.rb', line 5 def @metadata_defaults end |
#publisher_schema_paths ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
Returns the value of attribute schema_path.
7 8 9 |
# File 'lib/event_engine/configuration.rb', line 7 def schema_path @schema_path end |