Class: Seams::Configuration
- Inherits:
-
Object
- Object
- Seams::Configuration
- Defined in:
- lib/seams/configuration.rb
Overview
Global Seams configuration. Set via Seams.configure { |c| … } in config/initializers/seams.rb of the host application.
Instance Attribute Summary collapse
-
#event_bus_adapter ⇒ Object
Returns the value of attribute event_bus_adapter.
-
#event_namespace_separator ⇒ Object
Returns the value of attribute event_namespace_separator.
-
#host_app_name ⇒ Object
Returns the value of attribute host_app_name.
-
#observability_adapter ⇒ Object
Returns the value of attribute observability_adapter.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 |
# File 'lib/seams/configuration.rb', line 12 def initialize @event_bus_adapter = "Seams::Events::Adapters::ActiveSupport" @observability_adapter = "Seams::Observability::Adapters::RailsLogger" @event_namespace_separator = "." @host_app_name = nil end |
Instance Attribute Details
#event_bus_adapter ⇒ Object
Returns the value of attribute event_bus_adapter.
7 8 9 |
# File 'lib/seams/configuration.rb', line 7 def event_bus_adapter @event_bus_adapter end |
#event_namespace_separator ⇒ Object
Returns the value of attribute event_namespace_separator.
7 8 9 |
# File 'lib/seams/configuration.rb', line 7 def event_namespace_separator @event_namespace_separator end |
#host_app_name ⇒ Object
Returns the value of attribute host_app_name.
7 8 9 |
# File 'lib/seams/configuration.rb', line 7 def host_app_name @host_app_name end |
#observability_adapter ⇒ Object
Returns the value of attribute observability_adapter.
7 8 9 |
# File 'lib/seams/configuration.rb', line 7 def observability_adapter @observability_adapter end |