Sha256: 648899e18d54e99a8ddc0900c1106a035cd46adc7b818576e9c4a46398827d59

Contents?: true

Size: 290 Bytes

Versions: 6

Compression:

Stored size: 290 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

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