Sha256: b53fe0c9d887cb437bad367665276162461be3037a4acfd642eedeb0a366986d

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

module Firstjob
  class ExcelLevel
    EXCEL_LEVELS = YAML.load_file("lib/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

1 entries across 1 versions & 1 rubygems

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