Class: Detektiiv::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/detektiiv/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#application_nameObject

Returns the value of attribute application_name.



3
4
5
# File 'lib/detektiiv/configuration.rb', line 3

def application_name
  @application_name
end

#logfile_pathObject

Returns the value of attribute logfile_path.



3
4
5
# File 'lib/detektiiv/configuration.rb', line 3

def logfile_path
  @logfile_path
end

Instance Method Details

#initializerObject



5
6
7
8
# File 'lib/detektiiv/configuration.rb', line 5

def initializer
  @application_name = ::Rails.application.class.name.split('::').first.underscore
  @logfile_path     = '/tmp/detektiiv.log'
end