Sha256: 1bb531560d65eec365c46557f153bea31828e467d8ede21d78d2289d46a0635f
Contents?: true
Size: 319 Bytes
Versions: 6
Compression:
Stored size: 319 Bytes
Contents
module FirstjobApi 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
6 entries across 6 versions & 1 rubygems