Skip to content

Completed code#75

Open
skel11417 wants to merge 6 commits intovikingeducation:masterfrom
skel11417:master
Open

Completed code#75
skel11417 wants to merge 6 commits intovikingeducation:masterfrom
skel11417:master

Conversation

@skel11417
Copy link

Offered a good opportunity to finally knuckle down and learn regular expressions.

Copy link

@remis1889 remis1889 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use classes and organize your code using methods.

scraper.rb Outdated
current_job.link = link.href
id_matches = link.href.match(%r{\d{5}\/(.+)\/(.+)\?})
if id_matches
current_job.comp_id, current_job.job_id = id_matches.captures

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use single line if statement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants