Sha256: 1cb23dee1c4ca25784b5a68009389426b9a2ed5d83ad42965267b19ff576db3a

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

module Firstjob
  class EnglishLevel
    ENGLISH_LEVELS = YAML.load_file(File.join(File.dirname(__FILE__),"../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

2 entries across 2 versions & 1 rubygems

Version Path
firstjob-1.0.4 lib/firstjob/english_level.rb
firstjob-1.0.1 lib/firstjob/english_level.rb