Sha256: a7294ceaefb075331409e98d5d44a2e1686b9c91a39fc3f53c969616c80fe903

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

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