{"action":"created","comment":{"url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments/29308946","id":29308946,"diff_hunk":"@@ -0,0 +1,27 @@\n+class Video < ActiveRecord::Base\n+  validate :verify_youtube_video\n+\n+  validates :slot, numericality: { only_integer: true,\n+                                   greater_than_or_equal_to: 1,\n+                                   less_than_or_equal_to: 4\n+                                  },\n+                                  allow_blank: true\n+\n+  validates_inclusion_of :page, in: [\"tools and resources\",","path":"app/models/video.rb","position":10,"original_position":10,"commit_id":"e7a8c996703873eb9d447072dda56172e30fbf81","original_commit_id":"e7a8c996703873eb9d447072dda56172e30fbf81","user":{"login":"cluhring","id":8466906,"avatar_url":"https://avatars.githubusercontent.com/u/8466906?v=3","gravatar_id":"","url":"https://api.github.com/users/cluhring","html_url":"https://github.com/cluhring","followers_url":"https://api.github.com/users/cluhring/followers","following_url":"https://api.github.com/users/cluhring/following{/other_user}","gists_url":"https://api.github.com/users/cluhring/gists{/gist_id}","starred_url":"https://api.github.com/users/cluhring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluhring/subscriptions","organizations_url":"https://api.github.com/users/cluhring/orgs","repos_url":"https://api.github.com/users/cluhring/repos","events_url":"https://api.github.com/users/cluhring/events{/privacy}","received_events_url":"https://api.github.com/users/cluhring/received_events","type":"User","site_admin":false},"body":"video needs to know its page?","created_at":"2015-04-29T03:59:22Z","updated_at":"2015-04-29T03:59:22Z","html_url":"https://github.com/oorion/opportunity_at_work/pull/22#discussion_r29308946","pull_request_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments/29308946"},"html":{"href":"https://github.com/oorion/opportunity_at_work/pull/22#discussion_r29308946"},"pull_request":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22","id":34320477,"html_url":"https://github.com/oorion/opportunity_at_work/pull/22","diff_url":"https://github.com/oorion/opportunity_at_work/pull/22.diff","patch_url":"https://github.com/oorion/opportunity_at_work/pull/22.patch","issue_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/22","number":22,"state":"open","locked":false,"title":"Video pdf refactor","user":{"login":"Jwan622","id":6790201,"avatar_url":"https://avatars.githubusercontent.com/u/6790201?v=3","gravatar_id":"","url":"https://api.github.com/users/Jwan622","html_url":"https://github.com/Jwan622","followers_url":"https://api.github.com/users/Jwan622/followers","following_url":"https://api.github.com/users/Jwan622/following{/other_user}","gists_url":"https://api.github.com/users/Jwan622/gists{/gist_id}","starred_url":"https://api.github.com/users/Jwan622/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jwan622/subscriptions","organizations_url":"https://api.github.com/users/Jwan622/orgs","repos_url":"https://api.github.com/users/Jwan622/repos","events_url":"https://api.github.com/users/Jwan622/events{/privacy}","received_events_url":"https://api.github.com/users/Jwan622/received_events","type":"User","site_admin":false},"body":"-added video model because we eventually need to store youtube urls\r\n-added video tests\r\n-fixed pdf model to take out the page column\r\n-fixed pdf tests","created_at":"2015-04-28T23:05:09Z","updated_at":"2015-04-29T03:59:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f99f27b32438ef45f4545f049739062167a76b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22/commits","review_comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22/comments","review_comment_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/22/comments","statuses_url":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/e7a8c996703873eb9d447072dda56172e30fbf81","head":{"label":"oorion:video_pdf_refactor","ref":"video_pdf_refactor","sha":"e7a8c996703873eb9d447072dda56172e30fbf81","user":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"repo":{"id":34225645,"name":"opportunity_at_work","full_name":"oorion/opportunity_at_work","owner":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oorion/opportunity_at_work","description":"","fork":false,"url":"https://api.github.com/repos/oorion/opportunity_at_work","forks_url":"https://api.github.com/repos/oorion/opportunity_at_work/forks","keys_url":"https://api.github.com/repos/oorion/opportunity_at_work/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oorion/opportunity_at_work/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oorion/opportunity_at_work/teams","hooks_url":"https://api.github.com/repos/oorion/opportunity_at_work/hooks","issue_events_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/events{/number}","events_url":"https://api.github.com/repos/oorion/opportunity_at_work/events","assignees_url":"https://api.github.com/repos/oorion/opportunity_at_work/assignees{/user}","branches_url":"https://api.github.com/repos/oorion/opportunity_at_work/branches{/branch}","tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/tags","blobs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/refs{/sha}","trees_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/{sha}","languages_url":"https://api.github.com/repos/oorion/opportunity_at_work/languages","stargazers_url":"https://api.github.com/repos/oorion/opportunity_at_work/stargazers","contributors_url":"https://api.github.com/repos/oorion/opportunity_at_work/contributors","subscribers_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscribers","subscription_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscription","commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/commits{/sha}","git_commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/commits{/sha}","comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/comments{/number}","issue_comment_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/comments{/number}","contents_url":"https://api.github.com/repos/oorion/opportunity_at_work/contents/{+path}","compare_url":"https://api.github.com/repos/oorion/opportunity_at_work/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oorion/opportunity_at_work/merges","archive_url":"https://api.github.com/repos/oorion/opportunity_at_work/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oorion/opportunity_at_work/downloads","issues_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues{/number}","pulls_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls{/number}","milestones_url":"https://api.github.com/repos/oorion/opportunity_at_work/milestones{/number}","notifications_url":"https://api.github.com/repos/oorion/opportunity_at_work/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oorion/opportunity_at_work/labels{/name}","releases_url":"https://api.github.com/repos/oorion/opportunity_at_work/releases{/id}","created_at":"2015-04-19T21:43:18Z","updated_at":"2015-04-28T22:37:55Z","pushed_at":"2015-04-29T03:08:50Z","git_url":"git://github.com/oorion/opportunity_at_work.git","ssh_url":"git@github.com:oorion/opportunity_at_work.git","clone_url":"https://github.com/oorion/opportunity_at_work.git","svn_url":"https://github.com/oorion/opportunity_at_work","homepage":null,"size":11666,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"oorion:master","ref":"master","sha":"1ba2bec303286553ee581a22788cc9f3dc0acd59","user":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"repo":{"id":34225645,"name":"opportunity_at_work","full_name":"oorion/opportunity_at_work","owner":{"login":"oorion","id":869456,"avatar_url":"https://avatars.githubusercontent.com/u/869456?v=3","gravatar_id":"","url":"https://api.github.com/users/oorion","html_url":"https://github.com/oorion","followers_url":"https://api.github.com/users/oorion/followers","following_url":"https://api.github.com/users/oorion/following{/other_user}","gists_url":"https://api.github.com/users/oorion/gists{/gist_id}","starred_url":"https://api.github.com/users/oorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oorion/subscriptions","organizations_url":"https://api.github.com/users/oorion/orgs","repos_url":"https://api.github.com/users/oorion/repos","events_url":"https://api.github.com/users/oorion/events{/privacy}","received_events_url":"https://api.github.com/users/oorion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oorion/opportunity_at_work","description":"","fork":false,"url":"https://api.github.com/repos/oorion/opportunity_at_work","forks_url":"https://api.github.com/repos/oorion/opportunity_at_work/forks","keys_url":"https://api.github.com/repos/oorion/opportunity_at_work/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oorion/opportunity_at_work/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oorion/opportunity_at_work/teams","hooks_url":"https://api.github.com/repos/oorion/opportunity_at_work/hooks","issue_events_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/events{/number}","events_url":"https://api.github.com/repos/oorion/opportunity_at_work/events","assignees_url":"https://api.github.com/repos/oorion/opportunity_at_work/assignees{/user}","branches_url":"https://api.github.com/repos/oorion/opportunity_at_work/branches{/branch}","tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/tags","blobs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/refs{/sha}","trees_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/{sha}","languages_url":"https://api.github.com/repos/oorion/opportunity_at_work/languages","stargazers_url":"https://api.github.com/repos/oorion/opportunity_at_work/stargazers","contributors_url":"https://api.github.com/repos/oorion/opportunity_at_work/contributors","subscribers_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscribers","subscription_url":"https://api.github.com/repos/oorion/opportunity_at_work/subscription","commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/commits{/sha}","git_commits_url":"https://api.github.com/repos/oorion/opportunity_at_work/git/commits{/sha}","comments_url":"https://api.github.com/repos/oorion/opportunity_at_work/comments{/number}","issue_comment_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues/comments{/number}","contents_url":"https://api.github.com/repos/oorion/opportunity_at_work/contents/{+path}","compare_url":"https://api.github.com/repos/oorion/opportunity_at_work/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oorion/opportunity_at_work/merges","archive_url":"https://api.github.com/repos/oorion/opportunity_at_work/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oorion/opportunity_at_work/downloads","issues_url":"https://api.github.com/repos/oorion/opportunity_at_work/issues{/number}","pulls_url":"https://api.github.com/repos/oorion/opportunity_at_work/pulls{/number}","milestones_url":"https://api.github.com/repos/oorion/opportunity_at_work/milestones{/number}","notifications_url":"https://api.github.com/repos/oorion/opportunity_at_work/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oorion/opportunity_at_work/labels{/name}","releases_url":"https://api.github.com/repos/oorion/opportunity_at_work/releases{/id}","created_at":"2015-04-19T21:43:18Z","updated_at":"2015-04-28T22:37:55Z","pushed_at":"2015-04-29T03:08:50Z","git_url":"git://github.com/oorion/opportunity_at_work.git","ssh_url":"git@github.com:oorion/opportunity_at_work.git","clone_url":"https://github.com/oorion/opportunity_at_work.git","svn_url":"https://github.com/oorion/opportunity_at_work","homepage":null,"size":11666,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22"},"html":{"href":"https://github.com/oorion/opportunity_at_work/pull/22"},"issue":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/issues/22"},"comments":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/oorion/opportunity_at_work/statuses/e7a8c996703873eb9d447072dda56172e30fbf81"}}}}