Sha256: 01fe8c2280ed8d25f2329f0951c2b0096dd3e56ca43c74851e2feedd53c8356e

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

module Firstjob
  class EnglishLevel
    ENGLISH_LEVELS = YAML.load_file("lib/data/english_levels.yaml")["english_levels"].symbolize_keys!

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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