{"action":"created","comment":{"url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/comments/61818106","id":61818106,"diff_hunk":"@@ -63,22 +99,33 @@ def get_category_notice\n     return notice\n   end\n \n+  # Gets draft title for a tutorial\n+  #\n+  # If the tutorial is a draft:\n+  # => Returns a String: \"DRAFT: tutorial.title.upcase\"\n+  # If the tutorial is not a draft:\n+  # => Returns a String \"EDIT: tutorial.title.upcase\"\n   def get_draft_title_for_tutorial\n     return self.draft == true ? \"DRAFT: #{self.title.upcase}\" : \"EDIT: #{self.title.upcase}\"\n   end\n \n-def create_chapters(params)\n+  # Creates new chapters.\n+  #\n+  # Takes params arguments.\n+  # \n+  # Returns a new Chapter Object.\n+  def create_chapters(params)\n     #@new_chapters = []\n     #params.each do |key, value|\n-      @new_chapter = self.chapters.new(title: params[:title], description: params[:description], draft: params[:draft])\n+    @new_chapter = self.chapters.new(title: params[:title], description: params[:description], draft: params[:draft])","path":"app/models/tutorial.rb","position":85,"original_position":85,"commit_id":"0ac6897bbfd515a82b11e05b93758769c8928d99","original_commit_id":"0ac6897bbfd515a82b11e05b93758769c8928d99","user":{"login":"sumeetjain","id":29388,"avatar_url":"https://avatars.githubusercontent.com/u/29388?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetjain","html_url":"https://github.com/sumeetjain","followers_url":"https://api.github.com/users/sumeetjain/followers","following_url":"https://api.github.com/users/sumeetjain/following{/other_user}","gists_url":"https://api.github.com/users/sumeetjain/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetjain/subscriptions","organizations_url":"https://api.github.com/users/sumeetjain/orgs","repos_url":"https://api.github.com/users/sumeetjain/repos","events_url":"https://api.github.com/users/sumeetjain/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetjain/received_events","type":"User","site_admin":false},"body":"Line is too long. [117/80]","created_at":"2016-05-02T22:48:45Z","updated_at":"2016-05-02T22:48:45Z","html_url":"https://github.com/omahacodeschool/fyiio/pull/279#discussion_r61818106","pull_request_url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279","_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/comments/61818106"},"html":{"href":"https://github.com/omahacodeschool/fyiio/pull/279#discussion_r61818106"},"pull_request":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279"}}},"pull_request":{"url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279","id":68569390,"html_url":"https://github.com/omahacodeschool/fyiio/pull/279","diff_url":"https://github.com/omahacodeschool/fyiio/pull/279.diff","patch_url":"https://github.com/omahacodeschool/fyiio/pull/279.patch","issue_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues/279","number":279,"state":"open","locked":false,"title":"TomDoc methods in tutorial.rb #275","user":{"login":"bbiehl","id":16292207,"avatar_url":"https://avatars.githubusercontent.com/u/16292207?v=3","gravatar_id":"","url":"https://api.github.com/users/bbiehl","html_url":"https://github.com/bbiehl","followers_url":"https://api.github.com/users/bbiehl/followers","following_url":"https://api.github.com/users/bbiehl/following{/other_user}","gists_url":"https://api.github.com/users/bbiehl/gists{/gist_id}","starred_url":"https://api.github.com/users/bbiehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbiehl/subscriptions","organizations_url":"https://api.github.com/users/bbiehl/orgs","repos_url":"https://api.github.com/users/bbiehl/repos","events_url":"https://api.github.com/users/bbiehl/events{/privacy}","received_events_url":"https://api.github.com/users/bbiehl/received_events","type":"User","site_admin":false},"body":"- [x] privacy_check\r\n- [x] draft_check\r\n- [x] get_privacy_notice\r\n- [x] get_category_notice\r\n- [x] get_draft_title_for_tutorial\r\n- [x] create_chapters(params)\r\n- [ ] save_if_valid","created_at":"2016-05-02T14:44:07Z","updated_at":"2016-05-02T22:48:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a23e4a4da45bdc007dcc8f30da724417ab043e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279/commits","review_comments_url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279/comments","review_comment_url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues/279/comments","statuses_url":"https://api.github.com/repos/omahacodeschool/fyiio/statuses/0ac6897bbfd515a82b11e05b93758769c8928d99","head":{"label":"omahacodeschool:275-TomDoc-tutorial-model","ref":"275-TomDoc-tutorial-model","sha":"0ac6897bbfd515a82b11e05b93758769c8928d99","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":54342584,"name":"fyiio","full_name":"omahacodeschool/fyiio","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/fyiio","description":null,"fork":false,"url":"https://api.github.com/repos/omahacodeschool/fyiio","forks_url":"https://api.github.com/repos/omahacodeschool/fyiio/forks","keys_url":"https://api.github.com/repos/omahacodeschool/fyiio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/fyiio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/fyiio/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/fyiio/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/fyiio/events","assignees_url":"https://api.github.com/repos/omahacodeschool/fyiio/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/fyiio/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/fyiio/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/fyiio/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/fyiio/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/fyiio/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/fyiio/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/fyiio/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/fyiio/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/fyiio/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/fyiio/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/fyiio/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/fyiio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/fyiio/merges","archive_url":"https://api.github.com/repos/omahacodeschool/fyiio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/fyiio/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/fyiio/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/fyiio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/fyiio/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/fyiio/releases{/id}","deployments_url":"https://api.github.com/repos/omahacodeschool/fyiio/deployments","created_at":"2016-03-20T21:54:52Z","updated_at":"2016-03-20T21:55:48Z","pushed_at":"2016-05-02T22:45:19Z","git_url":"git://github.com/omahacodeschool/fyiio.git","ssh_url":"git@github.com:omahacodeschool/fyiio.git","clone_url":"https://github.com/omahacodeschool/fyiio.git","svn_url":"https://github.com/omahacodeschool/fyiio","homepage":null,"size":3439,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":81,"forks":0,"open_issues":81,"watchers":0,"default_branch":"master"}},"base":{"label":"omahacodeschool:master","ref":"master","sha":"c28f71263b24958e8eb3c05033e3f01fe59f98da","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":54342584,"name":"fyiio","full_name":"omahacodeschool/fyiio","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/fyiio","description":null,"fork":false,"url":"https://api.github.com/repos/omahacodeschool/fyiio","forks_url":"https://api.github.com/repos/omahacodeschool/fyiio/forks","keys_url":"https://api.github.com/repos/omahacodeschool/fyiio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/fyiio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/fyiio/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/fyiio/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/fyiio/events","assignees_url":"https://api.github.com/repos/omahacodeschool/fyiio/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/fyiio/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/fyiio/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/fyiio/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/fyiio/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/fyiio/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/fyiio/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/fyiio/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/fyiio/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/fyiio/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/fyiio/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/fyiio/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/fyiio/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/fyiio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/fyiio/merges","archive_url":"https://api.github.com/repos/omahacodeschool/fyiio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/fyiio/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/fyiio/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/fyiio/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/fyiio/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/fyiio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/fyiio/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/fyiio/releases{/id}","deployments_url":"https://api.github.com/repos/omahacodeschool/fyiio/deployments","created_at":"2016-03-20T21:54:52Z","updated_at":"2016-03-20T21:55:48Z","pushed_at":"2016-05-02T22:45:19Z","git_url":"git://github.com/omahacodeschool/fyiio.git","ssh_url":"git@github.com:omahacodeschool/fyiio.git","clone_url":"https://github.com/omahacodeschool/fyiio.git","svn_url":"https://github.com/omahacodeschool/fyiio","homepage":null,"size":3439,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":81,"forks":0,"open_issues":81,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279"},"html":{"href":"https://github.com/omahacodeschool/fyiio/pull/279"},"issue":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/issues/279"},"comments":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/omahacodeschool/fyiio/statuses/0ac6897bbfd515a82b11e05b93758769c8928d99"}}}}