Sha256: 471f7f4cbc664f46f24105716ef4f4c7801986f4ecae27f5b195f3c4b691efcf
Contents?: true
Size: 316 Bytes
Versions: 2
Compression:
Stored size: 316 Bytes
Contents
module Firstjob class University UNIVERSITIES = YAML.load_file(File.join(File.dirname(__FILE__),"../data/universities.yaml"))["universities"].symbolize_keys! # Poor's man all def self.all UNIVERSITIES end # Poor's man find def self.find(id) UNIVERSITIES[id] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
firstjob-1.0.4 | lib/firstjob/university.rb |
firstjob-1.0.1 | lib/firstjob/university.rb |