Class: Firstjob::LookingFor

Inherits:
Object
  • Object
show all
Defined in:
lib/firstjob/looking_for.rb

Constant Summary collapse

LOOKING_FORS =
YAML.load_file(File.join(File.dirname(__FILE__),"../data/looking_fors.yaml"))["looking_fors"].symbolize_keys!

Class Method Summary collapse

Class Method Details

.allObject

Poor’s man all



6
7
8
# File 'lib/firstjob/looking_for.rb', line 6

def self.all
  LOOKING_FORS
end

.find(id) ⇒ Object

Poor’s man find



11
12
13
# File 'lib/firstjob/looking_for.rb', line 11

def self.find(id)
  LOOKING_FORS[id]
end