Class: Umbra::Config
- Inherits:
-
Object
- Object
- Umbra::Config
- Defined in:
- lib/umbra/config.rb
Instance Attribute Summary collapse
-
#encoder ⇒ Object
Returns the value of attribute encoder.
-
#error_handler ⇒ Object
Returns the value of attribute error_handler.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
-
#redis_options ⇒ Object
Returns the value of attribute redis_options.
-
#request_selector ⇒ Object
Returns the value of attribute request_selector.
Class Method Summary collapse
Instance Attribute Details
#encoder ⇒ Object
Returns the value of attribute encoder.
3 4 5 |
# File 'lib/umbra/config.rb', line 3 def encoder @encoder end |
#error_handler ⇒ Object
Returns the value of attribute error_handler.
3 4 5 |
# File 'lib/umbra/config.rb', line 3 def error_handler @error_handler end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/umbra/config.rb', line 3 def logger @logger end |
#publisher ⇒ Object
Returns the value of attribute publisher.
3 4 5 |
# File 'lib/umbra/config.rb', line 3 def publisher @publisher end |
#redis_options ⇒ Object
Returns the value of attribute redis_options.
3 4 5 |
# File 'lib/umbra/config.rb', line 3 def @redis_options end |
#request_selector ⇒ Object
Returns the value of attribute request_selector.
3 4 5 |
# File 'lib/umbra/config.rb', line 3 def request_selector @request_selector end |
Class Method Details
.default(&block) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/umbra/config.rb', line 5 def self.default(&block) new( publisher: Publisher.new, request_selector: RequestSelector, encoder: Encoder, error_handler: SuppressErrorHandler, redis_options: {}, logger: Logger.new($stdout), &block ) end |