{"action":"created","comment":{"url":"https://api.github.com/repos/mikedao/job_basket/pulls/comments/29003378","id":29003378,"diff_hunk":"@@ -1,5 +1,30 @@\n class Company < ActiveRecord::Base\n+  after_create :get_info\n+\n   has_many :jobs\n \n   validates :name, presence: true\n+\n+  private\n+\n+  def get_info\n+    result = GlassdoorService.new.company(name)\n+    if result\n+      update_attributes(url: result[\"website\"],\n+                        industry: result[\"industry\"],\n+                        logo_url: result[\"squareLogo\"],\n+                        overall_rating: result[\"overallRating\"].to_f,\n+                        rating_description: result[\"ratingDescription\"],\n+                        cultureandvalues_rating: result[\"cultureAndValuesRating\"].to_f,\n+                        seniorleadership_rating: result[\"seniorLeadershipRating\"].to_f,\n+                        compensationandbenefits_rating: result[\"compensationAndBenefitsRating\"].to_f,\n+                        careeropportunities_rating: result[\"careerOpportunitiesRating\"].to_f,\n+                        worklifebalance_rating: result[\"workLifeBalanceRating\"].to_f,\n+                        recommendtofriends_rating: result[\"recommendToFriendRating\"].to_f,","path":"app/models/company.rb","position":23,"original_position":23,"commit_id":"53da412e86bf844274b2b5615342b8d819688001","original_commit_id":"53da412e86bf844274b2b5615342b8d819688001","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [90/80]","created_at":"2015-04-23T21:04:43Z","updated_at":"2015-04-23T21:04:43Z","html_url":"https://github.com/mikedao/job_basket/pull/23#discussion_r29003378","pull_request_url":"https://api.github.com/repos/mikedao/job_basket/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/mikedao/job_basket/pulls/comments/29003378"},"html":{"href":"https://github.com/mikedao/job_basket/pull/23#discussion_r29003378"},"pull_request":{"href":"https://api.github.com/repos/mikedao/job_basket/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/mikedao/job_basket/pulls/23","id":33992561,"html_url":"https://github.com/mikedao/job_basket/pull/23","diff_url":"https://github.com/mikedao/job_basket/pull/23.diff","patch_url":"https://github.com/mikedao/job_basket/pull/23.patch","issue_url":"https://api.github.com/repos/mikedao/job_basket/issues/23","number":23,"state":"open","locked":false,"title":"Glassdoor","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"body":"Glassdoor populating.","created_at":"2015-04-23T20:20:23Z","updated_at":"2015-04-23T21:04:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ba3850700dbae5e4efa83028a3d53a69b392526","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mikedao/job_basket/pulls/23/commits","review_comments_url":"https://api.github.com/repos/mikedao/job_basket/pulls/23/comments","review_comment_url":"https://api.github.com/repos/mikedao/job_basket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mikedao/job_basket/issues/23/comments","statuses_url":"https://api.github.com/repos/mikedao/job_basket/statuses/53da412e86bf844274b2b5615342b8d819688001","head":{"label":"mikedao:glassdoor","ref":"glassdoor","sha":"53da412e86bf844274b2b5615342b8d819688001","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"repo":{"id":34081901,"name":"job_basket","full_name":"mikedao/job_basket","owner":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedao/job_basket","description":"","fork":false,"url":"https://api.github.com/repos/mikedao/job_basket","forks_url":"https://api.github.com/repos/mikedao/job_basket/forks","keys_url":"https://api.github.com/repos/mikedao/job_basket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedao/job_basket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedao/job_basket/teams","hooks_url":"https://api.github.com/repos/mikedao/job_basket/hooks","issue_events_url":"https://api.github.com/repos/mikedao/job_basket/issues/events{/number}","events_url":"https://api.github.com/repos/mikedao/job_basket/events","assignees_url":"https://api.github.com/repos/mikedao/job_basket/assignees{/user}","branches_url":"https://api.github.com/repos/mikedao/job_basket/branches{/branch}","tags_url":"https://api.github.com/repos/mikedao/job_basket/tags","blobs_url":"https://api.github.com/repos/mikedao/job_basket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedao/job_basket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedao/job_basket/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedao/job_basket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedao/job_basket/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedao/job_basket/languages","stargazers_url":"https://api.github.com/repos/mikedao/job_basket/stargazers","contributors_url":"https://api.github.com/repos/mikedao/job_basket/contributors","subscribers_url":"https://api.github.com/repos/mikedao/job_basket/subscribers","subscription_url":"https://api.github.com/repos/mikedao/job_basket/subscription","commits_url":"https://api.github.com/repos/mikedao/job_basket/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedao/job_basket/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedao/job_basket/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedao/job_basket/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikedao/job_basket/contents/{+path}","compare_url":"https://api.github.com/repos/mikedao/job_basket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedao/job_basket/merges","archive_url":"https://api.github.com/repos/mikedao/job_basket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedao/job_basket/downloads","issues_url":"https://api.github.com/repos/mikedao/job_basket/issues{/number}","pulls_url":"https://api.github.com/repos/mikedao/job_basket/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedao/job_basket/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedao/job_basket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedao/job_basket/labels{/name}","releases_url":"https://api.github.com/repos/mikedao/job_basket/releases{/id}","created_at":"2015-04-16T21:35:35Z","updated_at":"2015-04-23T20:52:25Z","pushed_at":"2015-04-23T21:04:36Z","git_url":"git://github.com/mikedao/job_basket.git","ssh_url":"git@github.com:mikedao/job_basket.git","clone_url":"https://github.com/mikedao/job_basket.git","svn_url":"https://github.com/mikedao/job_basket","homepage":null,"size":1269,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"mikedao:master","ref":"master","sha":"84d732a02779d0046fa391e5b3d9cc423849a174","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"repo":{"id":34081901,"name":"job_basket","full_name":"mikedao/job_basket","owner":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedao/job_basket","description":"","fork":false,"url":"https://api.github.com/repos/mikedao/job_basket","forks_url":"https://api.github.com/repos/mikedao/job_basket/forks","keys_url":"https://api.github.com/repos/mikedao/job_basket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedao/job_basket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedao/job_basket/teams","hooks_url":"https://api.github.com/repos/mikedao/job_basket/hooks","issue_events_url":"https://api.github.com/repos/mikedao/job_basket/issues/events{/number}","events_url":"https://api.github.com/repos/mikedao/job_basket/events","assignees_url":"https://api.github.com/repos/mikedao/job_basket/assignees{/user}","branches_url":"https://api.github.com/repos/mikedao/job_basket/branches{/branch}","tags_url":"https://api.github.com/repos/mikedao/job_basket/tags","blobs_url":"https://api.github.com/repos/mikedao/job_basket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedao/job_basket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedao/job_basket/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedao/job_basket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedao/job_basket/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedao/job_basket/languages","stargazers_url":"https://api.github.com/repos/mikedao/job_basket/stargazers","contributors_url":"https://api.github.com/repos/mikedao/job_basket/contributors","subscribers_url":"https://api.github.com/repos/mikedao/job_basket/subscribers","subscription_url":"https://api.github.com/repos/mikedao/job_basket/subscription","commits_url":"https://api.github.com/repos/mikedao/job_basket/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedao/job_basket/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedao/job_basket/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedao/job_basket/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikedao/job_basket/contents/{+path}","compare_url":"https://api.github.com/repos/mikedao/job_basket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedao/job_basket/merges","archive_url":"https://api.github.com/repos/mikedao/job_basket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedao/job_basket/downloads","issues_url":"https://api.github.com/repos/mikedao/job_basket/issues{/number}","pulls_url":"https://api.github.com/repos/mikedao/job_basket/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedao/job_basket/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedao/job_basket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedao/job_basket/labels{/name}","releases_url":"https://api.github.com/repos/mikedao/job_basket/releases{/id}","created_at":"2015-04-16T21:35:35Z","updated_at":"2015-04-23T20:52:25Z","pushed_at":"2015-04-23T21:04:36Z","git_url":"git://github.com/mikedao/job_basket.git","ssh_url":"git@github.com:mikedao/job_basket.git","clone_url":"https://github.com/mikedao/job_basket.git","svn_url":"https://github.com/mikedao/job_basket","homepage":null,"size":1269,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikedao/job_basket/pulls/23"},"html":{"href":"https://github.com/mikedao/job_basket/pull/23"},"issue":{"href":"https://api.github.com/repos/mikedao/job_basket/issues/23"},"comments":{"href":"https://api.github.com/repos/mikedao/job_basket/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/mikedao/job_basket/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/mikedao/job_basket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mikedao/job_basket/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/mikedao/job_basket/statuses/53da412e86bf844274b2b5615342b8d819688001"}}}}