Class: Contingency::Configuration
- Inherits:
-
Object
- Object
- Contingency::Configuration
- Defined in:
- lib/contingency/configuration.rb
Instance Attribute Summary collapse
-
#error_layout ⇒ Object
Returns the value of attribute error_layout.
-
#error_messages ⇒ Object
Returns the value of attribute error_messages.
-
#error_template ⇒ Object
Returns the value of attribute error_template.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#failure_message ⇒ Object
Returns the value of attribute failure_message.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#unknown_error_message ⇒ Object
Returns the value of attribute unknown_error_message.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/contingency/configuration.rb', line 9 def initialize @errors = {} @error_messages = {} @error_layout = '' @error_template = '' @unknown_error_message = ['Server Error', 'It looks like something went wrong.'] @failure_message = "Server Error: It looks like something went wrong." @logger = Logger.new(STDERR) end |
Instance Attribute Details
#error_layout ⇒ Object
Returns the value of attribute error_layout.
4 5 6 |
# File 'lib/contingency/configuration.rb', line 4 def error_layout @error_layout end |
#error_messages ⇒ Object
Returns the value of attribute error_messages.
4 5 6 |
# File 'lib/contingency/configuration.rb', line 4 def @error_messages end |
#error_template ⇒ Object
Returns the value of attribute error_template.
4 5 6 |
# File 'lib/contingency/configuration.rb', line 4 def error_template @error_template end |
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/contingency/configuration.rb', line 4 def errors @errors end |
#failure_message ⇒ Object
Returns the value of attribute failure_message.
4 5 6 |
# File 'lib/contingency/configuration.rb', line 4 def @failure_message end |
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/contingency/configuration.rb', line 4 def logger @logger end |
#unknown_error_message ⇒ Object
Returns the value of attribute unknown_error_message.
4 5 6 |
# File 'lib/contingency/configuration.rb', line 4 def @unknown_error_message end |