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

Version Path
firstjob_api-1.0.9 lib/firstjob_api/university.rb
firstjob_api-1.0.8 lib/firstjob_api/university.rb
firstjob_api-1.0.7 lib/firstjob_api/university.rb
firstjob_api-1.0.6 lib/firstjob_api/university.rb
firstjob_api-1.0.5 lib/firstjob_api/university.rb
firstjob_api-1.0.4 lib/firstjob_api/university.rb