Sha256: 2173e85b14d949b369d87c6ef90c4e76fe872f7e9b5418d46567845cb5fb93e9

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

module Firstjob
  class CareerStatus
    CAREER_STATUSES = YAML.load_file("lib/data/career_statuses.yaml")["career_statuses"].symbolize_keys!

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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