Class: Firstjob::EnglishLevel
- Inherits:
-
Object
- Object
- Firstjob::EnglishLevel
- Defined in:
- lib/firstjob/english_level.rb
Constant Summary collapse
- ENGLISH_LEVELS =
YAML.load_file(File.join(File.dirname(__FILE__),"../data/english_levels.yaml"))["english_levels"].symbolize_keys!
Class Method Summary collapse
-
.all ⇒ Object
Poor’s man all.
-
.find(id) ⇒ Object
Poor’s man find.
Class Method Details
.all ⇒ Object
Poor’s man all
6 7 8 |
# File 'lib/firstjob/english_level.rb', line 6 def self.all ENGLISH_LEVELS end |
.find(id) ⇒ Object
Poor’s man find
11 12 13 |
# File 'lib/firstjob/english_level.rb', line 11 def self.find(id) ENGLISH_LEVELS[id] end |