Create a gist now

Instantly share code, notes, and snippets.

@davidlesches /config.rb Secret
Last active Jan 1, 2016

What would you like to do?
Yodlee and Rails Implementation, Part 2: The Banks - app/models/yodlee/config.rb
module Yodlee
class Config
class_attribute :username, :password, :base_url, :register_users
# Load yaml settings
YAML.load_file("#{Rails.root}/config/yodlee.yml")[Rails.env].each do |key, value|
self.send("#{key}=", value)
end
Yodlee::Base.base_uri base_url
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment