Sha256: c455c5bb5e7eab1e3f901c8caa3e1947765de2fbdb833b6841b1fd29673a4f28
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
module Firstjob class CareerStatus CAREER_STATUSES = YAML.load_file(File.join(File.dirname(__FILE__),"../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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
firstjob-1.0.4 | lib/firstjob/career_status.rb |
firstjob-1.0.1 | lib/firstjob/career_status.rb |