{"action":"closed","number":59,"pull_request":{"url":"https://api.github.com/repos/pulibrary/plum/pulls/59","id":44575052,"html_url":"https://github.com/pulibrary/plum/pull/59","diff_url":"https://github.com/pulibrary/plum/pull/59.diff","patch_url":"https://github.com/pulibrary/plum/pull/59.patch","issue_url":"https://api.github.com/repos/pulibrary/plum/issues/59","number":59,"state":"closed","locked":false,"title":"Small refactor of ScannedBook","user":{"login":"terrellt","id":2806645,"avatar_url":"https://avatars.githubusercontent.com/u/2806645?v=3","gravatar_id":"","url":"https://api.github.com/users/terrellt","html_url":"https://github.com/terrellt","followers_url":"https://api.github.com/users/terrellt/followers","following_url":"https://api.github.com/users/terrellt/following{/other_user}","gists_url":"https://api.github.com/users/terrellt/gists{/gist_id}","starred_url":"https://api.github.com/users/terrellt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrellt/subscriptions","organizations_url":"https://api.github.com/users/terrellt/orgs","repos_url":"https://api.github.com/users/terrellt/repos","events_url":"https://api.github.com/users/terrellt/events{/privacy}","received_events_url":"https://api.github.com/users/terrellt/received_events","type":"User","site_admin":false},"body":"* Capturing errors was untested and this is likely not a good place for it to happen, so that was removed.\r\n* Implemented null record pattern to avoid dealing with complex logic in the model.","created_at":"2015-09-09T16:59:42Z","updated_at":"2015-09-09T17:20:24Z","closed_at":"2015-09-09T17:20:24Z","merged_at":"2015-09-09T17:20:24Z","merge_commit_sha":"e4c81f25f221adfb163ac122038f7d55d225431d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pulibrary/plum/pulls/59/commits","review_comments_url":"https://api.github.com/repos/pulibrary/plum/pulls/59/comments","review_comment_url":"https://api.github.com/repos/pulibrary/plum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulibrary/plum/issues/59/comments","statuses_url":"https://api.github.com/repos/pulibrary/plum/statuses/23b72a2a832efe88ce36072188279c6ea79d960e","head":{"label":"pulibrary:remove_cruft","ref":"remove_cruft","sha":"23b72a2a832efe88ce36072188279c6ea79d960e","user":{"login":"pulibrary","id":1827800,"avatar_url":"https://avatars.githubusercontent.com/u/1827800?v=3","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":41826844,"name":"plum","full_name":"pulibrary/plum","owner":{"login":"pulibrary","id":1827800,"avatar_url":"https://avatars.githubusercontent.com/u/1827800?v=3","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulibrary/plum","description":"Plum: Hydra Head to support book digitization","fork":false,"url":"https://api.github.com/repos/pulibrary/plum","forks_url":"https://api.github.com/repos/pulibrary/plum/forks","keys_url":"https://api.github.com/repos/pulibrary/plum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulibrary/plum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulibrary/plum/teams","hooks_url":"https://api.github.com/repos/pulibrary/plum/hooks","issue_events_url":"https://api.github.com/repos/pulibrary/plum/issues/events{/number}","events_url":"https://api.github.com/repos/pulibrary/plum/events","assignees_url":"https://api.github.com/repos/pulibrary/plum/assignees{/user}","branches_url":"https://api.github.com/repos/pulibrary/plum/branches{/branch}","tags_url":"https://api.github.com/repos/pulibrary/plum/tags","blobs_url":"https://api.github.com/repos/pulibrary/plum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulibrary/plum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulibrary/plum/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulibrary/plum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulibrary/plum/statuses/{sha}","languages_url":"https://api.github.com/repos/pulibrary/plum/languages","stargazers_url":"https://api.github.com/repos/pulibrary/plum/stargazers","contributors_url":"https://api.github.com/repos/pulibrary/plum/contributors","subscribers_url":"https://api.github.com/repos/pulibrary/plum/subscribers","subscription_url":"https://api.github.com/repos/pulibrary/plum/subscription","commits_url":"https://api.github.com/repos/pulibrary/plum/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulibrary/plum/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulibrary/plum/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulibrary/plum/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulibrary/plum/contents/{+path}","compare_url":"https://api.github.com/repos/pulibrary/plum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulibrary/plum/merges","archive_url":"https://api.github.com/repos/pulibrary/plum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulibrary/plum/downloads","issues_url":"https://api.github.com/repos/pulibrary/plum/issues{/number}","pulls_url":"https://api.github.com/repos/pulibrary/plum/pulls{/number}","milestones_url":"https://api.github.com/repos/pulibrary/plum/milestones{/number}","notifications_url":"https://api.github.com/repos/pulibrary/plum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulibrary/plum/labels{/name}","releases_url":"https://api.github.com/repos/pulibrary/plum/releases{/id}","created_at":"2015-09-02T20:45:24Z","updated_at":"2015-09-04T13:43:34Z","pushed_at":"2015-09-09T17:20:24Z","git_url":"git://github.com/pulibrary/plum.git","ssh_url":"git@github.com:pulibrary/plum.git","clone_url":"https://github.com/pulibrary/plum.git","svn_url":"https://github.com/pulibrary/plum","homepage":"","size":521,"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":22,"forks":1,"open_issues":22,"watchers":0,"default_branch":"master"}},"base":{"label":"pulibrary:master","ref":"master","sha":"c63f61a254530a27abdd7180b6fb20049eeeda7a","user":{"login":"pulibrary","id":1827800,"avatar_url":"https://avatars.githubusercontent.com/u/1827800?v=3","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":41826844,"name":"plum","full_name":"pulibrary/plum","owner":{"login":"pulibrary","id":1827800,"avatar_url":"https://avatars.githubusercontent.com/u/1827800?v=3","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulibrary/plum","description":"Plum: Hydra Head to support book digitization","fork":false,"url":"https://api.github.com/repos/pulibrary/plum","forks_url":"https://api.github.com/repos/pulibrary/plum/forks","keys_url":"https://api.github.com/repos/pulibrary/plum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulibrary/plum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulibrary/plum/teams","hooks_url":"https://api.github.com/repos/pulibrary/plum/hooks","issue_events_url":"https://api.github.com/repos/pulibrary/plum/issues/events{/number}","events_url":"https://api.github.com/repos/pulibrary/plum/events","assignees_url":"https://api.github.com/repos/pulibrary/plum/assignees{/user}","branches_url":"https://api.github.com/repos/pulibrary/plum/branches{/branch}","tags_url":"https://api.github.com/repos/pulibrary/plum/tags","blobs_url":"https://api.github.com/repos/pulibrary/plum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulibrary/plum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulibrary/plum/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulibrary/plum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulibrary/plum/statuses/{sha}","languages_url":"https://api.github.com/repos/pulibrary/plum/languages","stargazers_url":"https://api.github.com/repos/pulibrary/plum/stargazers","contributors_url":"https://api.github.com/repos/pulibrary/plum/contributors","subscribers_url":"https://api.github.com/repos/pulibrary/plum/subscribers","subscription_url":"https://api.github.com/repos/pulibrary/plum/subscription","commits_url":"https://api.github.com/repos/pulibrary/plum/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulibrary/plum/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulibrary/plum/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulibrary/plum/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulibrary/plum/contents/{+path}","compare_url":"https://api.github.com/repos/pulibrary/plum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulibrary/plum/merges","archive_url":"https://api.github.com/repos/pulibrary/plum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulibrary/plum/downloads","issues_url":"https://api.github.com/repos/pulibrary/plum/issues{/number}","pulls_url":"https://api.github.com/repos/pulibrary/plum/pulls{/number}","milestones_url":"https://api.github.com/repos/pulibrary/plum/milestones{/number}","notifications_url":"https://api.github.com/repos/pulibrary/plum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulibrary/plum/labels{/name}","releases_url":"https://api.github.com/repos/pulibrary/plum/releases{/id}","created_at":"2015-09-02T20:45:24Z","updated_at":"2015-09-04T13:43:34Z","pushed_at":"2015-09-09T17:20:24Z","git_url":"git://github.com/pulibrary/plum.git","ssh_url":"git@github.com:pulibrary/plum.git","clone_url":"https://github.com/pulibrary/plum.git","svn_url":"https://github.com/pulibrary/plum","homepage":"","size":521,"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":22,"forks":1,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulibrary/plum/pulls/59"},"html":{"href":"https://github.com/pulibrary/plum/pull/59"},"issue":{"href":"https://api.github.com/repos/pulibrary/plum/issues/59"},"comments":{"href":"https://api.github.com/repos/pulibrary/plum/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/pulibrary/plum/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/pulibrary/plum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulibrary/plum/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/pulibrary/plum/statuses/23b72a2a832efe88ce36072188279c6ea79d960e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jpstroop","id":999701,"avatar_url":"https://avatars.githubusercontent.com/u/999701?v=3","gravatar_id":"","url":"https://api.github.com/users/jpstroop","html_url":"https://github.com/jpstroop","followers_url":"https://api.github.com/users/jpstroop/followers","following_url":"https://api.github.com/users/jpstroop/following{/other_user}","gists_url":"https://api.github.com/users/jpstroop/gists{/gist_id}","starred_url":"https://api.github.com/users/jpstroop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpstroop/subscriptions","organizations_url":"https://api.github.com/users/jpstroop/orgs","repos_url":"https://api.github.com/users/jpstroop/repos","events_url":"https://api.github.com/users/jpstroop/events{/privacy}","received_events_url":"https://api.github.com/users/jpstroop/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":28,"deletions":14,"changed_files":2}}