Class: Money::Distributed::Fetcher::Currencylayer

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/money/distributed/fetcher/currencylayer.rb,
lib/money/distributed/fetcher/currencylayer/version.rb

Overview

Currencylayer rates fetcher

Constant Summary collapse

API_ENDPOINT =
'http://apilayer.net/api/live'.freeze
VERSION =
'0.0.2.1'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(api_key, bank = nil) ⇒ Currencylayer

Returns a new instance of Currencylayer.



13
14
15
16
# File 'lib/money/distributed/fetcher/currencylayer.rb', line 13

def initialize(api_key, bank = nil)
  super(bank)
  @api_key = api_key
end