Created
March 9, 2017 15:24
-
-
Save uday-rayala/41b559d2ab1b4173d9263a36ca496b77 to your computer and use it in GitHub Desktop.
PricingEngineFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PricingEngineFactory | |
def self.engine | |
engine_class = Figaro.env.pricing_engine || LocalPricingEngine.name | |
engine_class.safe_constantize.new | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment