class Money::Bank::VariableExchange

Defined in:

money/bank/variable_exchange.cr

Instance Method Summary

Instance methods inherited from class Money::Bank

exchange(from : Money, to : Currency) : Money exchange, store : Currency::RateStore store, store=(store : Currency::RateStore) store=

Constructor methods inherited from class Money::Bank

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

Class methods inherited from class Money::Bank

default_store : Currency::RateStore default_store, default_store=(default_store : Currency::RateStore) default_store=

Instance Method Detail

def calculate_fractional(from : Money, to : Currency) : BigDecimal #

[View source]
def exchange(from : Money, to : Currency) : Money #
Description copied from class Money::Bank

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


[View source]