Class: Multiwoven::Integrations::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/multiwoven/integrations/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Config

Returns a new instance of Config.



10
11
12
13
14
# File 'lib/multiwoven/integrations/config.rb', line 10

def initialize(params = {})
  @logger = params[:logger]
  @exception_reporter = params[:exception_reporter]
  @cache = params[:cache]
end

Instance Attribute Details

#cacheObject

cache: optional host store responding to read(key), write(key, value, expires_in:) and delete(key). Without one, caching is a per-process memo.



8
9
10
# File 'lib/multiwoven/integrations/config.rb', line 8

def cache
  @cache
end

#exception_reporterObject

cache: optional host store responding to read(key), write(key, value, expires_in:) and delete(key). Without one, caching is a per-process memo.



8
9
10
# File 'lib/multiwoven/integrations/config.rb', line 8

def exception_reporter
  @exception_reporter
end

#loggerObject

cache: optional host store responding to read(key), write(key, value, expires_in:) and delete(key). Without one, caching is a per-process memo.



8
9
10
# File 'lib/multiwoven/integrations/config.rb', line 8

def logger
  @logger
end