Class: ExceptionsApp::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#envsObject

Returns the value of attribute envs.



3
4
5
# File 'lib/exceptions_app/config.rb', line 3

def envs
  @envs
end

#errors_pathObject

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_pathObject

Returns the value of attribute statics_path.



3
4
5
# File 'lib/exceptions_app/config.rb', line 3

def statics_path
  @statics_path
end