Sha256: 37bc29082ecd397ff4b17f60146750724bd72b532dd0fd4e66a29821b61a16bd
Contents?: true
Size: 599 Bytes
Versions: 3
Compression:
Stored size: 599 Bytes
Contents
module ForbesFinder class Record attr_accessor :domain attr_accessor :name attr_accessor :rank attr_accessor :alias def initialize(domain) begin toml_record = TOML.load_file(File.expand_path(__FILE__+"/../../data/2012/#{domain}.toml")) @name = toml_record["name"] @rank = toml_record["rank"] @domain = toml_record["domain"] if File.symlink?(File.expand_path(__FILE__+"/../../data/2012/#{domain}.toml")) @alias = true end rescue Error => e puts e.inspect end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
forbes-finder-0.1.2 | lib/forbes-finder/record.rb |
forbes-finder-0.1.1 | lib/forbes-finder/record.rb |
forbes-finder-0.1.0 | lib/forbes-finder/record.rb |