class Capwatch::Fund::Config::Demo
Constants
- NAME
Public Instance Methods
create_demo_config()
click to toggle source
# File lib/capwatch/fund/config.rb, line 93 def create_demo_config file_name = File.expand_path(Local::FILE_NAME) File.open(file_name, "w") do |file| file.write(demo_fund_raw_data.gsub!("Basic Fund", NAME)) end end
demo_fund_raw_data()
click to toggle source
# File lib/capwatch/fund/config.rb, line 87 def demo_fund_raw_data file_path = File.join(__dir__, "..", "..", "funds", "basic.json") demo_fund = File.expand_path(file_path) File.open(demo_fund).read end