Module: Est
- Defined in:
- lib/est.rb,
lib/est/version.rb,
lib/est/estimate.rb,
lib/est/estimates.rb,
lib/est/methods/champions.rb
Overview
Single estimate.
- Author
-
Yegor Bugayenko ([email protected])
- Copyright
-
Copyright © 2014-2016 Yegor Bugayenko
- License
-
MIT
Defined Under Namespace
Classes: Base, Champions, Error, Estimate, Estimates, SchemaError
Constant Summary collapse
- VERSION =
'0.3.4'
Class Attribute Summary collapse
-
.logger ⇒ Object
writeonly
Sets the attribute logger.
Class Method Summary collapse
-
.log ⇒ Object
Get logger.
Class Attribute Details
.logger=(value) ⇒ Object (writeonly)
Sets the attribute logger
56 57 58 |
# File 'lib/est.rb', line 56 def logger=(value) @logger = value end |
Class Method Details
.log ⇒ Object
Get logger.
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/est.rb', line 44 def self.log unless @logger @logger = Logger.new(STDOUT) @logger.formatter = proc { |severity, _, _, msg| "#{severity}: #{msg.dump}\n" } @logger.level = Logger::ERROR end @logger end |