class

Money::Bank

Inherits Reference / Object

Constructors

new(store : Money::Currency::RateStore | Nil = nil)
Source

Class methods

default_store

It defaults to using an in-memory, thread safe store instance for storing exchange rates.

Source
default_store=(default_store : Currency::RateStore)

It defaults to using an in-memory, thread safe store instance for storing exchange rates.

Source

Instance methods

exchange(from : Money, to : Currency) : Money

Exchanges the given Money object to a new Money object in to Currency.

Source
store

An exchange Currency::RateStore object, used to persist exchange rate pairs.

Source
store=(store : Currency::RateStore)

An exchange Currency::RateStore object, used to persist exchange rate pairs.

Source

Nested types