Skip to content

Instantly share code, notes, and snippets.

@TrevMcKendrick
Created October 11, 2013 15:55
Show Gist options
  • Save TrevMcKendrick/6937235 to your computer and use it in GitHub Desktop.
Save TrevMcKendrick/6937235 to your computer and use it in GitHub Desktop.
require_relative './student_scraper'
require_relative './student'
require_relative './CLIstudent.rb'
require 'pry'
main_index_url = "http://students.flatironschool.com"
student_scrape = StudentScraper.new(main_index_url)
student_array = student_scrape.c2
student_array.each do |student_hash|
new_student = Student.new
new_student.name = student_hash[:name]
new_student.twitter = student_hash[:twitter]
new_student.linkedin = student_hash[:linkedin]
new_student.facebook = student_hash[:facebook]
end
clistudent = CLIstudent.new(Student.all)
clistudent.call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment