module Adapters::Hackernews
Public Instance Methods
grab(source)
click to toggle source
# File lib/adapters/hackernews.rb, line 6 def grab source hiring = HNJobs.new.jobs jobs = Array.new hiring.each do |job| jobs << JobGrabber::Job.new('hackernews:' + source, job["id"].to_s, job["title"], job["text"], Time.at(job["time"]).to_datetime.to_s, (job["url"].nil?)? "" : job["url"]) end jobs end