Sha256: 5072037531a92c5770cca4e80927eb8fcb448ca20416b4878e7a23b3227340dc

Contents?: true

Size: 254 Bytes

Versions: 1

Compression:

Stored size: 254 Bytes

Contents

module Firstjob
  class Career
    CAREERS = YAML.load_file("lib/data/careers.yaml")["careers"].symbolize_keys!

    # Poor's man all
    def self.all
      CAREERS
    end

    # Poor's man find
    def self.find(id)
      CAREERS[id]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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