class
Money::Currency::RateProvider::Coinlayer
Overview
Coinlayer currency rate provider.
Defined in:
money/currency/rate_provider/coinlayer.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
- #access_key : String
- #access_key=(access_key : String)
-
#base_currency_codes : Array(String)
Returns an array of supported base currency codes.
-
#exchange_rate?(base : Currency, target : Currency) : Rate | Nil
https://coinlayer.com/documentation#live
- #host : URI
- #host=(host : URI)
-
#target_currency_codes : Array(String)
Returns an array of supported target currency codes.
Instance methods inherited from class Money::Currency::RateProvider
base_currency_codes : Array(String)
base_currency_codes,
exchange_rate?(base : Currency, target : Currency) : Rate | Nil
exchange_rate?,
supports_currency_pair?(base : Currency, target : Currency) : Bool
supports_currency_pair?,
target_currency_codes : Array(String)
target_currency_codes
Constructor methods inherited from class Money::Currency::RateProvider
build(name : String, options : NamedTuple | Hash) : RateProviderbuild(name : String, **options) : RateProvider build
Class methods inherited from class Money::Currency::RateProvider
providers
providers
Instance methods inherited from module Money::Mixin::InitializeWith
initialize_with(attributes)initialize_with(**attributes) initialize_with
Constructor Detail
Instance Method Detail
def base_currency_codes : Array(String)
#
Description copied from class Money::Currency::RateProvider
Returns an array of supported base currency codes.
https://coinlayer.com/documentation#live
def target_currency_codes : Array(String)
#
Description copied from class Money::Currency::RateProvider
Returns an array of supported target currency codes.