{"action":"created","comment":{"url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/comments/205192585","pull_request_review_id":140414734,"id":205192585,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTE5MjU4NQ==","diff_hunk":"@@ -0,0 +1,51 @@\n+require_relative 'repository'\n+require_relative 'customer'\n+\n+class CustomerRepository\n+  include Repository\n+\n+  def initialize\n+    @customers = []\n+  end\n+\n+  def inspect\n+    \"#<#{self.class} #{all.size} rows>\"\n+  end\n+\n+  def all\n+    @customers\n+  end\n+\n+  def create_with_id(attributes)\n+    @customers << Customer.new(attributes)\n+  end\n+\n+  def child_class\n+    Customer\n+  end\n+\n+  def create(attributes)\n+    all << child_class.create(attributes)\n+  end\n+\n+  def find_all_by_first_name(name)\n+    all.find_all do |customer|\n+      customer.first_name.downcase.include?(name.downcase)\n+    end\n+  end\n+\n+  def find_all_by_last_name(name)\n+    all.find_all do |customer|\n+      customer.last_name.downcase.include?(name.downcase)\n+    end\n+  end\n+\n+  def update(id, attributes)\n+    customer = find_by_id(id)\n+    return nil if customer.nil?\n+    customer.first_name = attributes[:first_name] unless attributes[:first_name].nil?\n+    customer.last_name = attributes[:last_name] unless attributes[:last_name].nil?\n+    customer.updated_at = Time.now\n+  end\n+","path":"lib/customer_repository.rb","position":50,"original_position":50,"commit_id":"91de143e97917db6afe5b30d244238cc769f3fdf","original_commit_id":"91de143e97917db6afe5b30d244238cc769f3fdf","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.","created_at":"2018-07-25T17:17:59Z","updated_at":"2018-07-25T17:18:01Z","html_url":"https://github.com/patrickshobe/black_thursday/pull/17#discussion_r205192585","pull_request_url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/comments/205192585"},"html":{"href":"https://github.com/patrickshobe/black_thursday/pull/17#discussion_r205192585"},"pull_request":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17","id":203906308,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzOTA2MzA4","html_url":"https://github.com/patrickshobe/black_thursday/pull/17","diff_url":"https://github.com/patrickshobe/black_thursday/pull/17.diff","patch_url":"https://github.com/patrickshobe/black_thursday/pull/17.patch","issue_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues/17","number":17,"state":"closed","locked":false,"title":"Customer repo works up to sales analyst spec","user":{"login":"patrickshobe","id":32880860,"node_id":"MDQ6VXNlcjMyODgwODYw","avatar_url":"https://avatars3.githubusercontent.com/u/32880860?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickshobe","html_url":"https://github.com/patrickshobe","followers_url":"https://api.github.com/users/patrickshobe/followers","following_url":"https://api.github.com/users/patrickshobe/following{/other_user}","gists_url":"https://api.github.com/users/patrickshobe/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickshobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickshobe/subscriptions","organizations_url":"https://api.github.com/users/patrickshobe/orgs","repos_url":"https://api.github.com/users/patrickshobe/repos","events_url":"https://api.github.com/users/patrickshobe/events{/privacy}","received_events_url":"https://api.github.com/users/patrickshobe/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-25T17:17:22Z","updated_at":"2018-07-25T17:18:01Z","closed_at":"2018-07-25T17:17:39Z","merged_at":"2018-07-25T17:17:39Z","merge_commit_sha":"19a3d4abd5ddfdbbdf94b851ad991ae457973a63","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17/commits","review_comments_url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17/comments","review_comment_url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues/17/comments","statuses_url":"https://api.github.com/repos/patrickshobe/black_thursday/statuses/91de143e97917db6afe5b30d244238cc769f3fdf","head":{"label":"patrickshobe:customer_repository","ref":"customer_repository","sha":"91de143e97917db6afe5b30d244238cc769f3fdf","user":{"login":"patrickshobe","id":32880860,"node_id":"MDQ6VXNlcjMyODgwODYw","avatar_url":"https://avatars3.githubusercontent.com/u/32880860?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickshobe","html_url":"https://github.com/patrickshobe","followers_url":"https://api.github.com/users/patrickshobe/followers","following_url":"https://api.github.com/users/patrickshobe/following{/other_user}","gists_url":"https://api.github.com/users/patrickshobe/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickshobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickshobe/subscriptions","organizations_url":"https://api.github.com/users/patrickshobe/orgs","repos_url":"https://api.github.com/users/patrickshobe/repos","events_url":"https://api.github.com/users/patrickshobe/events{/privacy}","received_events_url":"https://api.github.com/users/patrickshobe/received_events","type":"User","site_admin":false},"repo":{"id":141745666,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3NDU2NjY=","name":"black_thursday","full_name":"patrickshobe/black_thursday","owner":{"login":"patrickshobe","id":32880860,"node_id":"MDQ6VXNlcjMyODgwODYw","avatar_url":"https://avatars3.githubusercontent.com/u/32880860?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickshobe","html_url":"https://github.com/patrickshobe","followers_url":"https://api.github.com/users/patrickshobe/followers","following_url":"https://api.github.com/users/patrickshobe/following{/other_user}","gists_url":"https://api.github.com/users/patrickshobe/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickshobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickshobe/subscriptions","organizations_url":"https://api.github.com/users/patrickshobe/orgs","repos_url":"https://api.github.com/users/patrickshobe/repos","events_url":"https://api.github.com/users/patrickshobe/events{/privacy}","received_events_url":"https://api.github.com/users/patrickshobe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patrickshobe/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/patrickshobe/black_thursday","forks_url":"https://api.github.com/repos/patrickshobe/black_thursday/forks","keys_url":"https://api.github.com/repos/patrickshobe/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patrickshobe/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patrickshobe/black_thursday/teams","hooks_url":"https://api.github.com/repos/patrickshobe/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/patrickshobe/black_thursday/events","assignees_url":"https://api.github.com/repos/patrickshobe/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/patrickshobe/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/patrickshobe/black_thursday/tags","blobs_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patrickshobe/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/patrickshobe/black_thursday/languages","stargazers_url":"https://api.github.com/repos/patrickshobe/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/patrickshobe/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/patrickshobe/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/patrickshobe/black_thursday/subscription","commits_url":"https://api.github.com/repos/patrickshobe/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/patrickshobe/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/patrickshobe/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/patrickshobe/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patrickshobe/black_thursday/merges","archive_url":"https://api.github.com/repos/patrickshobe/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patrickshobe/black_thursday/downloads","issues_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/patrickshobe/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/patrickshobe/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patrickshobe/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/patrickshobe/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/patrickshobe/black_thursday/deployments","created_at":"2018-07-20T18:34:35Z","updated_at":"2018-07-25T17:17:40Z","pushed_at":"2018-07-25T17:17:39Z","git_url":"git://github.com/patrickshobe/black_thursday.git","ssh_url":"git@github.com:patrickshobe/black_thursday.git","clone_url":"https://github.com/patrickshobe/black_thursday.git","svn_url":"https://github.com/patrickshobe/black_thursday","homepage":null,"size":1710,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"patrickshobe:master","ref":"master","sha":"5ee16f86af0364717ae1f5b5ca37e101b74cdeee","user":{"login":"patrickshobe","id":32880860,"node_id":"MDQ6VXNlcjMyODgwODYw","avatar_url":"https://avatars3.githubusercontent.com/u/32880860?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickshobe","html_url":"https://github.com/patrickshobe","followers_url":"https://api.github.com/users/patrickshobe/followers","following_url":"https://api.github.com/users/patrickshobe/following{/other_user}","gists_url":"https://api.github.com/users/patrickshobe/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickshobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickshobe/subscriptions","organizations_url":"https://api.github.com/users/patrickshobe/orgs","repos_url":"https://api.github.com/users/patrickshobe/repos","events_url":"https://api.github.com/users/patrickshobe/events{/privacy}","received_events_url":"https://api.github.com/users/patrickshobe/received_events","type":"User","site_admin":false},"repo":{"id":141745666,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3NDU2NjY=","name":"black_thursday","full_name":"patrickshobe/black_thursday","owner":{"login":"patrickshobe","id":32880860,"node_id":"MDQ6VXNlcjMyODgwODYw","avatar_url":"https://avatars3.githubusercontent.com/u/32880860?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickshobe","html_url":"https://github.com/patrickshobe","followers_url":"https://api.github.com/users/patrickshobe/followers","following_url":"https://api.github.com/users/patrickshobe/following{/other_user}","gists_url":"https://api.github.com/users/patrickshobe/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickshobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickshobe/subscriptions","organizations_url":"https://api.github.com/users/patrickshobe/orgs","repos_url":"https://api.github.com/users/patrickshobe/repos","events_url":"https://api.github.com/users/patrickshobe/events{/privacy}","received_events_url":"https://api.github.com/users/patrickshobe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patrickshobe/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/patrickshobe/black_thursday","forks_url":"https://api.github.com/repos/patrickshobe/black_thursday/forks","keys_url":"https://api.github.com/repos/patrickshobe/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patrickshobe/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patrickshobe/black_thursday/teams","hooks_url":"https://api.github.com/repos/patrickshobe/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/patrickshobe/black_thursday/events","assignees_url":"https://api.github.com/repos/patrickshobe/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/patrickshobe/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/patrickshobe/black_thursday/tags","blobs_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patrickshobe/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/patrickshobe/black_thursday/languages","stargazers_url":"https://api.github.com/repos/patrickshobe/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/patrickshobe/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/patrickshobe/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/patrickshobe/black_thursday/subscription","commits_url":"https://api.github.com/repos/patrickshobe/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/patrickshobe/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/patrickshobe/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/patrickshobe/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/patrickshobe/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patrickshobe/black_thursday/merges","archive_url":"https://api.github.com/repos/patrickshobe/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patrickshobe/black_thursday/downloads","issues_url":"https://api.github.com/repos/patrickshobe/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/patrickshobe/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/patrickshobe/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/patrickshobe/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patrickshobe/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/patrickshobe/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/patrickshobe/black_thursday/deployments","created_at":"2018-07-20T18:34:35Z","updated_at":"2018-07-25T17:17:40Z","pushed_at":"2018-07-25T17:17:39Z","git_url":"git://github.com/patrickshobe/black_thursday.git","ssh_url":"git@github.com:patrickshobe/black_thursday.git","clone_url":"https://github.com/patrickshobe/black_thursday.git","svn_url":"https://github.com/patrickshobe/black_thursday","homepage":null,"size":1710,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17"},"html":{"href":"https://github.com/patrickshobe/black_thursday/pull/17"},"issue":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/issues/17"},"comments":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/patrickshobe/black_thursday/statuses/91de143e97917db6afe5b30d244238cc769f3fdf"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}