I'm struggling to balance encapsulation with managing side effects in a specific scenario described here.
- PriceSettings
< ActiveRecord::Base
(side-effect-based class methods, value-based instances) stores user parameters for price calculations - APIClient (adapter object) fetches statistics from an external API to use in price calculations