Sha256: 275d7f762b0ca201b803df647bd703fb7a9e766cf645cf50d9397c4e81b7f323

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

module Firstjob
  class University
    UNIVERSITIES = YAML.load_file("lib/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

1 entries across 1 versions & 1 rubygems

Version Path
firstjob-1.0.0 lib/firstjob/university.rb