class
Money::Currency::RateProvider::UniRateAPI
Overview
UniRateAPI currency rate provider.
Included Modules
Defined in:
money/currency/rate_provider/uni_rate_api.crConstant Summary
-
Log =
::Log.for(self)
Constructors
-
.new(pull : JSON::PullParser)
UniRateAPI currency rate provider.
- .new(*, api_key : Nil | String = nil, host : Nil | URI = nil)
Class Method Summary
-
.key : String
Returns the provider key.
Instance Method Summary
- #api_key : String
- #api_key=(api_key : String)
- #base_currency_codes : Array(String)
- #exchange_rate?(base : Currency, target : Currency) : Rate | Nil
-
#host : URI
Returns the host URI used by the HTTP
#client
instance. - #host=(host : URI)
Instance methods inherited from module Money::Currency::RateProvider::HTTP
host : URI
host
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
new(pull : JSON::PullParser)
new
Class methods inherited from class Money::Currency::RateProvider
find(name : String | Symbol) : RateProvider.class
find,
find?(name : String | Symbol) : RateProvider.class | Nil
find?,
registry
registry
Constructor Detail
Class Method Detail
Instance Method Detail
def host : URI
#
Description copied from module Money::Currency::RateProvider::HTTP
Returns the host URI used by the HTTP #client
instance.