Class: CbrCurrency::Configuration
- Inherits:
-
Object
- Object
- CbrCurrency::Configuration
- Defined in:
- lib/cbr_currency/configuration.rb
Instance Attribute Summary collapse
-
#cbr_uri ⇒ Object
Returns the value of attribute cbr_uri.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/cbr_currency/configuration.rb', line 5 def initialize @cbr_uri = "http://www.cbr.ru/scripts/XML_daily.asp" @logger = defined?(Rails) ? Rails.logger : Logging.logger(STDOUT) end |
Instance Attribute Details
#cbr_uri ⇒ Object
Returns the value of attribute cbr_uri.
3 4 5 |
# File 'lib/cbr_currency/configuration.rb', line 3 def cbr_uri @cbr_uri end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/cbr_currency/configuration.rb', line 3 def logger @logger end |