Module: OpenExchangeRates

Defined in:
lib/open_exchange_rates.rb,
lib/open_exchange_rates/rates.rb,
lib/open_exchange_rates/version.rb,
lib/open_exchange_rates/response.rb,
lib/open_exchange_rates/configuration.rb

Defined Under Namespace

Classes: Configuration, Rates, Response

Constant Summary collapse

BASE_URL =
"https://openexchangerates.org/api".freeze
LATEST_URL =
"#{BASE_URL}/latest.json"
VERSION =
"0.6.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



12
13
14
# File 'lib/open_exchange_rates.rb', line 12

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



15
16
17
18
# File 'lib/open_exchange_rates.rb', line 15

def self.configure
  self.configuration ||= OpenExchangeRates::Configuration.new
  yield(configuration)
end