Module: PennyWise

Defined in:
lib/penny_wise.rb,
lib/penny_wise/version.rb,
lib/penny_wise/exceptions.rb,
lib/penny_wise/integration.rb,
lib/penny_wise/configuration.rb,
lib/penny_wise/error_handler.rb,
lib/penny_wise/integrations/rails.rb,
lib/penny_wise/integrations/rails/railtie.rb

Defined Under Namespace

Modules: ErrorHandler, Exceptions, Integration Classes: Configuration, IntegrationNotFoundException

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



13
14
15
# File 'lib/penny_wise.rb', line 13

def configuration
  @configuration
end

.integrationsObject

Returns the value of attribute integrations.



5
6
7
# File 'lib/penny_wise/integration.rb', line 5

def integrations
  @integrations
end

Class Method Details

.loggerObject



33
34
35
# File 'lib/penny_wise.rb', line 33

def self.logger
  @logger ||= configuration.logger
end

.render_errors?Boolean

To be overriden by integrations

Returns:

  • (Boolean)


29
30
31
# File 'lib/penny_wise.rb', line 29

def self.render_errors?
  true
end

.rootObject



24
25
26
# File 'lib/penny_wise.rb', line 24

def self.root
  Pathname.new(File.expand_path("../..", __FILE__))
end