Sha256: faaf5dc64acfd26e96017bf29f4641b2a16e12b11e21104cb214b3dd9c46a18b

Contents?: true

Size: 336 Bytes

Versions: 6

Compression:

Stored size: 336 Bytes

Contents

module FirstjobApi
  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

6 entries across 6 versions & 1 rubygems

Version Path
firstjob_api-1.0.9 lib/firstjob_api/career_status.rb
firstjob_api-1.0.8 lib/firstjob_api/career_status.rb
firstjob_api-1.0.7 lib/firstjob_api/career_status.rb
firstjob_api-1.0.6 lib/firstjob_api/career_status.rb
firstjob_api-1.0.5 lib/firstjob_api/career_status.rb
firstjob_api-1.0.4 lib/firstjob_api/career_status.rb