Sha256: a37b6fc1fc0d142d455b22b0ceb485fa34dc9ec616b3d30da64571cb9921d2b3

Contents?: true

Size: 331 Bytes

Versions: 6

Compression:

Stored size: 331 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

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