Class: ExceptionsApp::Config
- Inherits:
-
Object
- Object
- ExceptionsApp::Config
- Defined in:
- lib/exceptions_app/config.rb
Instance Attribute Summary collapse
-
#envs ⇒ Object
Returns the value of attribute envs.
-
#errors_path ⇒ Object
Returns the value of attribute errors_path.
-
#statics_path ⇒ Object
Returns the value of attribute statics_path.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 |
# File 'lib/exceptions_app/config.rb', line 5 def initialize @envs = ["production"] @errors_path = ["/404", "/422", "/500"] @statics_path = "public" end |
Instance Attribute Details
#envs ⇒ Object
Returns the value of attribute envs.
3 4 5 |
# File 'lib/exceptions_app/config.rb', line 3 def envs @envs end |
#errors_path ⇒ Object
Returns the value of attribute errors_path.
3 4 5 |
# File 'lib/exceptions_app/config.rb', line 3 def errors_path @errors_path end |
#statics_path ⇒ Object
Returns the value of attribute statics_path.
3 4 5 |
# File 'lib/exceptions_app/config.rb', line 3 def statics_path @statics_path end |