Class: Sourced::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#backendObject

Returns the value of attribute backend.



22
23
24
# File 'lib/sourced/configuration.rb', line 22

def backend
  @backend
end

#loggerObject

Returns the value of attribute logger.



21
22
23
# File 'lib/sourced/configuration.rb', line 21

def logger
  @logger
end