{"action":"created","comment":{"url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments/54068549","id":54068549,"diff_hunk":"@@ -1,164 +1,84 @@\n-class NotesApplication\n-#  @@notes = [\"Ada is a girl\",\"Tomi is here\",\"The way down is up\",\"Elizabeth is cool\",\"The way up is down\"]\n-  @@notes = []\n-\n-  def initialize(author)\n-    @@author = author\n-#    @@notes = [\"Ada is a girl\",\"Tomi is here\",\"The way down is up\",\"Elizabeth is cool\",\"The way up is down\"]\n-    @@notes = []\n-\n-  end\n-  def create(note_content)\n-    # puts \"Enter the content of the note here: \"\n-    # note_content = gets.chomp\n-      if note_content.size == 0\n-          puts \"You cannot submit an empty note\"\n-          note_content = gets.chomp\n-      else\n-        @@notes << note_content\n-        id = @@notes.size\n-        puts \"Note ID: #{id.to_i}\",\"\\n\"\n-        puts \"[#{@@notes[id.to_i-1]}]\"\n-        puts \"\\n\"*2\n-        puts \"By Author [#{@@author}]\"\n+module Tomiiwo\n+  \n+  class NotesApplication\n+    attr_accessor :author\n+    attr_accessor :notes\n+\n+    def confirmID note_id\n+      if !note_id.is_a? Integer\n+        puts \"Enter a number for note_id\"\n       end\n-  end\n-  def list\n-    for i in 1..(@@notes.length - 1)\n-      puts \"Note ID: #{i}\",\"\\n\"\n-      puts \"[#{@@notes[i]}]\",\"\\n\"\n+    end\n+    \n+    def handle_error author\n+      raise \"Do not include symbols or number in /\n+      author's name\" if @author.include? (/[\\W\\D]/)\n+      raise \"Everything must be in letters [A-Za-/\n+      z]\" if !@author.is_a? String\n+      raise \"Author's name must not be /\n+      empty!\" if @author.empty?\n+    end\n+    ","path":"lib/NotesApplication.rb","position":49,"original_position":49,"commit_id":"b82218546d1be0fc3126783c658daa8a7e64a4d7","original_commit_id":"b82218546d1be0fc3126783c658daa8a7e64a4d7","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Trailing whitespace detected.","created_at":"2016-02-25T09:32:20Z","updated_at":"2016-02-25T09:32:20Z","html_url":"https://github.com/ftomiiwo/NotesApplication/pull/1#discussion_r54068549","pull_request_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments/54068549"},"html":{"href":"https://github.com/ftomiiwo/NotesApplication/pull/1#discussion_r54068549"},"pull_request":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1","id":60468126,"html_url":"https://github.com/ftomiiwo/NotesApplication/pull/1","diff_url":"https://github.com/ftomiiwo/NotesApplication/pull/1.diff","patch_url":"https://github.com/ftomiiwo/NotesApplication/pull/1.patch","issue_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1","number":1,"state":"open","locked":false,"title":"Refactor Branch","user":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"body":"Refactor Branch","created_at":"2016-02-24T07:38:17Z","updated_at":"2016-02-25T09:32:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70762ab0f109276b6a72c70c79646bcd3f2ef331","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1/comments","statuses_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/b82218546d1be0fc3126783c658daa8a7e64a4d7","head":{"label":"ftomiiwo:master","ref":"master","sha":"b82218546d1be0fc3126783c658daa8a7e64a4d7","user":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"repo":{"id":52263862,"name":"NotesApplication","full_name":"ftomiiwo/NotesApplication","owner":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftomiiwo/NotesApplication","description":"This is a Note application and you can perfom CRUD operations on it","fork":false,"url":"https://api.github.com/repos/ftomiiwo/NotesApplication","forks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/forks","keys_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/teams","hooks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/hooks","issue_events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/events{/number}","events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/events","assignees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/assignees{/user}","branches_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/branches{/branch}","tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/tags","blobs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/{sha}","languages_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/languages","stargazers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/stargazers","contributors_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contributors","subscribers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscribers","subscription_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscription","commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contents/{+path}","compare_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/merges","archive_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/downloads","issues_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues{/number}","pulls_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls{/number}","milestones_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/milestones{/number}","notifications_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/labels{/name}","releases_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/releases{/id}","deployments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/deployments","created_at":"2016-02-22T09:55:39Z","updated_at":"2016-02-22T10:07:04Z","pushed_at":"2016-02-25T09:32:13Z","git_url":"git://github.com/ftomiiwo/NotesApplication.git","ssh_url":"git@github.com:ftomiiwo/NotesApplication.git","clone_url":"https://github.com/ftomiiwo/NotesApplication.git","svn_url":"https://github.com/ftomiiwo/NotesApplication","homepage":null,"size":20,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ftomiiwo:ch_refactor","ref":"ch_refactor","sha":"f9c421a6e6f09289ca0adcd32f5726ef35be392b","user":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"repo":{"id":52263862,"name":"NotesApplication","full_name":"ftomiiwo/NotesApplication","owner":{"login":"ftomiiwo","id":7585826,"avatar_url":"https://avatars.githubusercontent.com/u/7585826?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomiiwo","html_url":"https://github.com/ftomiiwo","followers_url":"https://api.github.com/users/ftomiiwo/followers","following_url":"https://api.github.com/users/ftomiiwo/following{/other_user}","gists_url":"https://api.github.com/users/ftomiiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomiiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomiiwo/subscriptions","organizations_url":"https://api.github.com/users/ftomiiwo/orgs","repos_url":"https://api.github.com/users/ftomiiwo/repos","events_url":"https://api.github.com/users/ftomiiwo/events{/privacy}","received_events_url":"https://api.github.com/users/ftomiiwo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftomiiwo/NotesApplication","description":"This is a Note application and you can perfom CRUD operations on it","fork":false,"url":"https://api.github.com/repos/ftomiiwo/NotesApplication","forks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/forks","keys_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/teams","hooks_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/hooks","issue_events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/events{/number}","events_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/events","assignees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/assignees{/user}","branches_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/branches{/branch}","tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/tags","blobs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/{sha}","languages_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/languages","stargazers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/stargazers","contributors_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contributors","subscribers_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscribers","subscription_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/subscription","commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/contents/{+path}","compare_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/merges","archive_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/downloads","issues_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues{/number}","pulls_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls{/number}","milestones_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/milestones{/number}","notifications_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/labels{/name}","releases_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/releases{/id}","deployments_url":"https://api.github.com/repos/ftomiiwo/NotesApplication/deployments","created_at":"2016-02-22T09:55:39Z","updated_at":"2016-02-22T10:07:04Z","pushed_at":"2016-02-25T09:32:13Z","git_url":"git://github.com/ftomiiwo/NotesApplication.git","ssh_url":"git@github.com:ftomiiwo/NotesApplication.git","clone_url":"https://github.com/ftomiiwo/NotesApplication.git","svn_url":"https://github.com/ftomiiwo/NotesApplication","homepage":null,"size":20,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1"},"html":{"href":"https://github.com/ftomiiwo/NotesApplication/pull/1"},"issue":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1"},"comments":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ftomiiwo/NotesApplication/statuses/b82218546d1be0fc3126783c658daa8a7e64a4d7"}}}}