Module: OpenExchangeRates
- Defined in:
- lib/open_exchange_rates.rb,
lib/open_exchange_rates/rates.rb,
lib/open_exchange_rates/parser.rb,
lib/open_exchange_rates/version.rb,
lib/open_exchange_rates/response.rb,
lib/open_exchange_rates/configuration.rb
Defined Under Namespace
Classes: Configuration, Parser, Rates, Response
Constant Summary collapse
- BASE_URL =
"http://openexchangerates.org"- LATEST_URL =
"#{BASE_URL}/latest.json"- VERSION =
"0.4.1"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/open_exchange_rates.rb', line 13 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
16 17 18 19 |
# File 'lib/open_exchange_rates.rb', line 16 def self.configure self.configuration ||= OpenExchangeRates::Configuration.new yield(configuration) end |