Sha256: f576c6a3724b3b11682b6f931c9966d93cd6fd3ff3a05fb263ed3cb7424f1b1e

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

module FirstjobApi
  class ExcelLevel
    EXCEL_LEVELS = YAML.load_file(File.join(File.dirname(__FILE__),"../data/excel_levels.yaml"))["excel_levels"].symbolize_keys!

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

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