This should be a simple object. It should take source currency, target currency and rate. It does not need to know anything about OpenExchange.