Class: Sourced::Configuration
- Inherits:
-
Object
- Object
- Sourced::Configuration
- Defined in:
- lib/sourced/configuration.rb
Constant Summary collapse
- BackendInterface =
Backends must expose these methods
Types::Interface[ :installed?, :reserve_next_for_reactor, :append_to_stream, :read_correlation_batch, :read_event_stream, :schedule_commands, :next_command, :transaction ]
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 |
# File 'lib/sourced/configuration.rb', line 24 def initialize @logger = Console @backend = Backends::TestBackend.new end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
22 23 24 |
# File 'lib/sourced/configuration.rb', line 22 def backend @backend end |
#logger ⇒ Object
Returns the value of attribute logger.
21 22 23 |
# File 'lib/sourced/configuration.rb', line 21 def logger @logger end |