class Money::Currency::RateProvider::CurrencyBeacon

Overview

CurrencyBeacon currency rate provider.

Included Modules

Defined in:

money/currency/rate_provider/currency_beacon.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Class Method Summary

Instance Method Summary

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

def self.new(pull : JSON::PullParser) #

CurrencyBeacon currency rate provider.


[View source]
def self.new(*, api_key : Nil | String = nil, host : Nil | URI = nil) #

[View source]

Class Method Detail

def self.key : String #

Returns the provider key.


[View source]

Instance Method Detail

def api_key : String #

[View source]
def api_key=(api_key : String) #

[View source]
def base_currency_codes : Array(String) #

[View source]
def exchange_rate?(base : Currency, target : Currency) : Rate | Nil #

[View source]
def host : URI #
Description copied from module Money::Currency::RateProvider::HTTP

Returns the host URI used by the HTTP #client instance.


[View source]
def host=(host : URI) #

[View source]