Sha256: f1f115ffb011c62044267077a2d778a54af7e480cec11fb0c6f5a324bcddba3c

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

module Firstjob
  class Career
    CAREERS = YAML.load_file(File.join(File.dirname(__FILE__),"../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

2 entries across 2 versions & 1 rubygems

Version Path
firstjob-1.0.4 lib/firstjob/career.rb
firstjob-1.0.1 lib/firstjob/career.rb