Class: LightService::Configuration
- Inherits:
-
Object
- Object
- LightService::Configuration
- Defined in:
- lib/light-service/configuration.rb
Class Attribute Summary collapse
-
.capture_errors ⇒ Object
Returns the value of attribute capture_errors.
- .locale ⇒ Object
- .localization_adapter ⇒ Object
- .logger ⇒ Object
Class Attribute Details
.capture_errors ⇒ Object
Returns the value of attribute capture_errors.
4 5 6 |
# File 'lib/light-service/configuration.rb', line 4 def capture_errors @capture_errors end |
.locale ⇒ Object
19 20 21 |
# File 'lib/light-service/configuration.rb', line 19 def locale @locale ||= :en end |
.localization_adapter ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/light-service/configuration.rb', line 11 def localization_adapter @localization_adapter ||= if Module.const_defined?('I18n') LightService::I18n::LocalizationAdapter.new else LocalizationAdapter.new end end |
.logger ⇒ Object
7 8 9 |
# File 'lib/light-service/configuration.rb', line 7 def logger @logger ||= _default_logger end |