class Job

Attributes

company[RW]
description[RW]
job_url[RW]
location[RW]
salary[RW]
title[RW]

Public Class Methods

all() click to toggle source
# File lib/indeed_scraper/job.rb, line 18
def self.all
  @@all
end
clear_all() click to toggle source
# File lib/indeed_scraper/job.rb, line 22
def self.clear_all
  @@all.clear
end
create_from_collection(jobs_array) click to toggle source
# File lib/indeed_scraper/job.rb, line 11
def self.create_from_collection(jobs_array)
  jobs_array.each do |hash|
    new_job = self.new(hash)
    new_job
  end
end
new(job_hash) click to toggle source
# File lib/indeed_scraper/job.rb, line 6
def initialize(job_hash)
  job_hash.each {|key, value| self.send(("#{key}="), value)}
  @@all << self
end