Module: ExchangeRate
- Defined in:
- lib/exchangerate_api_ruby.rb,
lib/exchangerate_api_ruby/api.rb,
lib/exchangerate_api_ruby/config.rb,
lib/exchangerate_api_ruby/logger.rb,
lib/exchangerate_api_ruby/railtie.rb,
lib/exchangerate_api_ruby/version.rb
Defined Under Namespace
Classes: API, Config, Railtie
Constant Summary
collapse
- VERSION =
'1.0.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
7
8
9
|
# File 'lib/exchangerate_api_ruby/config.rb', line 7
def config
@_config ||= Config.new
end
|
3
4
5
|
# File 'lib/exchangerate_api_ruby/config.rb', line 3
def configure
yield config
end
|
.logger ⇒ Object
4
5
6
7
8
|
# File 'lib/exchangerate_api_ruby/logger.rb', line 4
def logger
@logger ||= Logging.logger(STDOUT)
@logger.level = :warn
return @logger
end
|