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 Yegor Bugayenko

License

MIT

Defined Under Namespace

Classes: Base, Champions, Error, Estimate, Estimates, SchemaError

Constant Summary collapse

VERSION =
'0.3.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.logger=(value) ⇒ Object (writeonly)

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



56
57
58
# File 'lib/est.rb', line 56

def logger=(value)
  @logger = value
end

Class Method Details

.logObject

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