abstract class Money::Bank
- Money::Bank
- Reference
- Object
Direct Known Subclasses
Defined in:
money/bank.crConstructors
Class Method Summary
-
.default_store : Currency::RateStore
It defaults to using an in-memory, thread safe store instance for storing exchange rates.
-
.default_store=(default_store : Currency::RateStore)
It defaults to using an in-memory, thread safe store instance for storing exchange rates.
Instance Method Summary
- #exchange(from : Money, to : Currency) : Money
-
#store : Currency::RateStore
An exchange
Currency::RateStore
object, used to persist exchange rate pairs. -
#store=(store : Currency::RateStore)
An exchange
Currency::RateStore
object, used to persist exchange rate pairs.
Constructor Detail
Class Method Detail
def self.default_store : Currency::RateStore
#
It defaults to using an in-memory, thread safe store instance for storing exchange rates.
def self.default_store=(default_store : Currency::RateStore)
#
It defaults to using an in-memory, thread safe store instance for storing exchange rates.
Instance Method Detail
def store : Currency::RateStore
#
An exchange Currency::RateStore
object, used to persist exchange rate pairs.
def store=(store : Currency::RateStore)
#
An exchange Currency::RateStore
object, used to persist exchange rate pairs.