class Project < Hash def initialize self[:url]='' end def get_latest_unique_id '51ed9c9d45ba3979c808740d75ba1831c85aff5d' end def self.projects_filename FileUtils.mkdir("#{Environment.dev_root}/data") if(!File.exists?("#{Environment.dev_root}/data")) "#{Environment.dev_root}/data/PROJECTS.json" end def self.load_projects projects=Hash.new projects=JSON.parse(IO.read(projects_filename)) if File.exists?(projects_filename) projects end end