Last active
August 29, 2015 14:22
-
-
Save robwilliams/3f534aac0c4e178db4cc to your computer and use it in GitHub Desktop.
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
require 'freegeoip' | |
require 'ecb_rates' | |
module ExternalServices | |
module_function | |
def freegeoip | |
@freegeoip ||= Freegeoip.new(ENV.fetch('FREEGEOIP_URL')) | |
end | |
def ecb_rates | |
@ecb_rates ||= EcbRates.new(ENV.fetch('ECB_RATES_URL')) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment