{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/RayHightower/fibonacci/pulls/3","id":14907286,"html_url":"https://github.com/RayHightower/fibonacci/pull/3","diff_url":"https://github.com/RayHightower/fibonacci/pull/3.diff","patch_url":"https://github.com/RayHightower/fibonacci/pull/3.patch","issue_url":"https://api.github.com/repos/RayHightower/fibonacci/issues/3","number":3,"state":"closed","locked":false,"title":"Use Hash#fetch to provide a cache","user":{"login":"karayusuf","id":412083,"avatar_url":"https://avatars.githubusercontent.com/u/412083?v=3","gravatar_id":"","url":"https://api.github.com/users/karayusuf","html_url":"https://github.com/karayusuf","followers_url":"https://api.github.com/users/karayusuf/followers","following_url":"https://api.github.com/users/karayusuf/following{/other_user}","gists_url":"https://api.github.com/users/karayusuf/gists{/gist_id}","starred_url":"https://api.github.com/users/karayusuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karayusuf/subscriptions","organizations_url":"https://api.github.com/users/karayusuf/orgs","repos_url":"https://api.github.com/users/karayusuf/repos","events_url":"https://api.github.com/users/karayusuf/events{/privacy}","received_events_url":"https://api.github.com/users/karayusuf/received_events","type":"User","site_admin":false},"body":"Take advantage of the behavior of `Hash#fetch`.\r\nhttp://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch\r\n\r\nIf the key does not already exist, `fetch` will execute the block given.\r\nIn that block we can then set the key so that subsequent calls to fetch\r\nwill return the pre calculated value.","created_at":"2014-04-18T03:30:22Z","updated_at":"2015-01-27T02:18:05Z","closed_at":"2015-01-27T02:18:05Z","merged_at":"2015-01-27T02:18:05Z","merge_commit_sha":"c323a607fad7930dd95b6e83412e6b7bc7757370","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RayHightower/fibonacci/pulls/3/commits","review_comments_url":"https://api.github.com/repos/RayHightower/fibonacci/pulls/3/comments","review_comment_url":"https://api.github.com/repos/RayHightower/fibonacci/pulls/comments/{number}","comments_url":"https://api.github.com/repos/RayHightower/fibonacci/issues/3/comments","statuses_url":"https://api.github.com/repos/RayHightower/fibonacci/statuses/3560858467d3e2bb7f5f9efceafa8dcd0ecdc52e","head":{"label":"karayusuf:master","ref":"master","sha":"3560858467d3e2bb7f5f9efceafa8dcd0ecdc52e","user":{"login":"karayusuf","id":412083,"avatar_url":"https://avatars.githubusercontent.com/u/412083?v=3","gravatar_id":"","url":"https://api.github.com/users/karayusuf","html_url":"https://github.com/karayusuf","followers_url":"https://api.github.com/users/karayusuf/followers","following_url":"https://api.github.com/users/karayusuf/following{/other_user}","gists_url":"https://api.github.com/users/karayusuf/gists{/gist_id}","starred_url":"https://api.github.com/users/karayusuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karayusuf/subscriptions","organizations_url":"https://api.github.com/users/karayusuf/orgs","repos_url":"https://api.github.com/users/karayusuf/repos","events_url":"https://api.github.com/users/karayusuf/events{/privacy}","received_events_url":"https://api.github.com/users/karayusuf/received_events","type":"User","site_admin":false},"repo":{"id":18901391,"name":"fibonacci","full_name":"karayusuf/fibonacci","owner":{"login":"karayusuf","id":412083,"avatar_url":"https://avatars.githubusercontent.com/u/412083?v=3","gravatar_id":"","url":"https://api.github.com/users/karayusuf","html_url":"https://github.com/karayusuf","followers_url":"https://api.github.com/users/karayusuf/followers","following_url":"https://api.github.com/users/karayusuf/following{/other_user}","gists_url":"https://api.github.com/users/karayusuf/gists{/gist_id}","starred_url":"https://api.github.com/users/karayusuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karayusuf/subscriptions","organizations_url":"https://api.github.com/users/karayusuf/orgs","repos_url":"https://api.github.com/users/karayusuf/repos","events_url":"https://api.github.com/users/karayusuf/events{/privacy}","received_events_url":"https://api.github.com/users/karayusuf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karayusuf/fibonacci","description":"Experiments with Fibonacci and memoization.","fork":true,"url":"https://api.github.com/repos/karayusuf/fibonacci","forks_url":"https://api.github.com/repos/karayusuf/fibonacci/forks","keys_url":"https://api.github.com/repos/karayusuf/fibonacci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karayusuf/fibonacci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karayusuf/fibonacci/teams","hooks_url":"https://api.github.com/repos/karayusuf/fibonacci/hooks","issue_events_url":"https://api.github.com/repos/karayusuf/fibonacci/issues/events{/number}","events_url":"https://api.github.com/repos/karayusuf/fibonacci/events","assignees_url":"https://api.github.com/repos/karayusuf/fibonacci/assignees{/user}","branches_url":"https://api.github.com/repos/karayusuf/fibonacci/branches{/branch}","tags_url":"https://api.github.com/repos/karayusuf/fibonacci/tags","blobs_url":"https://api.github.com/repos/karayusuf/fibonacci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karayusuf/fibonacci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karayusuf/fibonacci/git/refs{/sha}","trees_url":"https://api.github.com/repos/karayusuf/fibonacci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karayusuf/fibonacci/statuses/{sha}","languages_url":"https://api.github.com/repos/karayusuf/fibonacci/languages","stargazers_url":"https://api.github.com/repos/karayusuf/fibonacci/stargazers","contributors_url":"https://api.github.com/repos/karayusuf/fibonacci/contributors","subscribers_url":"https://api.github.com/repos/karayusuf/fibonacci/subscribers","subscription_url":"https://api.github.com/repos/karayusuf/fibonacci/subscription","commits_url":"https://api.github.com/repos/karayusuf/fibonacci/commits{/sha}","git_commits_url":"https://api.github.com/repos/karayusuf/fibonacci/git/commits{/sha}","comments_url":"https://api.github.com/repos/karayusuf/fibonacci/comments{/number}","issue_comment_url":"https://api.github.com/repos/karayusuf/fibonacci/issues/comments/{number}","contents_url":"https://api.github.com/repos/karayusuf/fibonacci/contents/{+path}","compare_url":"https://api.github.com/repos/karayusuf/fibonacci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karayusuf/fibonacci/merges","archive_url":"https://api.github.com/repos/karayusuf/fibonacci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karayusuf/fibonacci/downloads","issues_url":"https://api.github.com/repos/karayusuf/fibonacci/issues{/number}","pulls_url":"https://api.github.com/repos/karayusuf/fibonacci/pulls{/number}","milestones_url":"https://api.github.com/repos/karayusuf/fibonacci/milestones{/number}","notifications_url":"https://api.github.com/repos/karayusuf/fibonacci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karayusuf/fibonacci/labels{/name}","releases_url":"https://api.github.com/repos/karayusuf/fibonacci/releases{/id}","created_at":"2014-04-18T03:23:39Z","updated_at":"2014-04-18T04:06:04Z","pushed_at":"2014-04-18T04:06:05Z","git_url":"git://github.com/karayusuf/fibonacci.git","ssh_url":"git@github.com:karayusuf/fibonacci.git","clone_url":"https://github.com/karayusuf/fibonacci.git","svn_url":"https://github.com/karayusuf/fibonacci","homepage":null,"size":146,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RayHightower:master","ref":"master","sha":"abe14478274aa090f77e989f1cceb6f80433609a","user":{"login":"RayHightower","id":3715,"avatar_url":"https://avatars.githubusercontent.com/u/3715?v=3","gravatar_id":"","url":"https://api.github.com/users/RayHightower","html_url":"https://github.com/RayHightower","followers_url":"https://api.github.com/users/RayHightower/followers","following_url":"https://api.github.com/users/RayHightower/following{/other_user}","gists_url":"https://api.github.com/users/RayHightower/gists{/gist_id}","starred_url":"https://api.github.com/users/RayHightower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RayHightower/subscriptions","organizations_url":"https://api.github.com/users/RayHightower/orgs","repos_url":"https://api.github.com/users/RayHightower/repos","events_url":"https://api.github.com/users/RayHightower/events{/privacy}","received_events_url":"https://api.github.com/users/RayHightower/received_events","type":"User","site_admin":false},"repo":{"id":18702326,"name":"fibonacci","full_name":"RayHightower/fibonacci","owner":{"login":"RayHightower","id":3715,"avatar_url":"https://avatars.githubusercontent.com/u/3715?v=3","gravatar_id":"","url":"https://api.github.com/users/RayHightower","html_url":"https://github.com/RayHightower","followers_url":"https://api.github.com/users/RayHightower/followers","following_url":"https://api.github.com/users/RayHightower/following{/other_user}","gists_url":"https://api.github.com/users/RayHightower/gists{/gist_id}","starred_url":"https://api.github.com/users/RayHightower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RayHightower/subscriptions","organizations_url":"https://api.github.com/users/RayHightower/orgs","repos_url":"https://api.github.com/users/RayHightower/repos","events_url":"https://api.github.com/users/RayHightower/events{/privacy}","received_events_url":"https://api.github.com/users/RayHightower/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RayHightower/fibonacci","description":"Experiments with Fibonacci and memoization.","fork":false,"url":"https://api.github.com/repos/RayHightower/fibonacci","forks_url":"https://api.github.com/repos/RayHightower/fibonacci/forks","keys_url":"https://api.github.com/repos/RayHightower/fibonacci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RayHightower/fibonacci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RayHightower/fibonacci/teams","hooks_url":"https://api.github.com/repos/RayHightower/fibonacci/hooks","issue_events_url":"https://api.github.com/repos/RayHightower/fibonacci/issues/events{/number}","events_url":"https://api.github.com/repos/RayHightower/fibonacci/events","assignees_url":"https://api.github.com/repos/RayHightower/fibonacci/assignees{/user}","branches_url":"https://api.github.com/repos/RayHightower/fibonacci/branches{/branch}","tags_url":"https://api.github.com/repos/RayHightower/fibonacci/tags","blobs_url":"https://api.github.com/repos/RayHightower/fibonacci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RayHightower/fibonacci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RayHightower/fibonacci/git/refs{/sha}","trees_url":"https://api.github.com/repos/RayHightower/fibonacci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RayHightower/fibonacci/statuses/{sha}","languages_url":"https://api.github.com/repos/RayHightower/fibonacci/languages","stargazers_url":"https://api.github.com/repos/RayHightower/fibonacci/stargazers","contributors_url":"https://api.github.com/repos/RayHightower/fibonacci/contributors","subscribers_url":"https://api.github.com/repos/RayHightower/fibonacci/subscribers","subscription_url":"https://api.github.com/repos/RayHightower/fibonacci/subscription","commits_url":"https://api.github.com/repos/RayHightower/fibonacci/commits{/sha}","git_commits_url":"https://api.github.com/repos/RayHightower/fibonacci/git/commits{/sha}","comments_url":"https://api.github.com/repos/RayHightower/fibonacci/comments{/number}","issue_comment_url":"https://api.github.com/repos/RayHightower/fibonacci/issues/comments/{number}","contents_url":"https://api.github.com/repos/RayHightower/fibonacci/contents/{+path}","compare_url":"https://api.github.com/repos/RayHightower/fibonacci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RayHightower/fibonacci/merges","archive_url":"https://api.github.com/repos/RayHightower/fibonacci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RayHightower/fibonacci/downloads","issues_url":"https://api.github.com/repos/RayHightower/fibonacci/issues{/number}","pulls_url":"https://api.github.com/repos/RayHightower/fibonacci/pulls{/number}","milestones_url":"https://api.github.com/repos/RayHightower/fibonacci/milestones{/number}","notifications_url":"https://api.github.com/repos/RayHightower/fibonacci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RayHightower/fibonacci/labels{/name}","releases_url":"https://api.github.com/repos/RayHightower/fibonacci/releases{/id}","created_at":"2014-04-12T11:12:25Z","updated_at":"2015-01-27T02:18:05Z","pushed_at":"2015-01-27T02:18:05Z","git_url":"git://github.com/RayHightower/fibonacci.git","ssh_url":"git@github.com:RayHightower/fibonacci.git","clone_url":"https://github.com/RayHightower/fibonacci.git","svn_url":"https://github.com/RayHightower/fibonacci","homepage":null,"size":342,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RayHightower/fibonacci/pulls/3"},"html":{"href":"https://github.com/RayHightower/fibonacci/pull/3"},"issue":{"href":"https://api.github.com/repos/RayHightower/fibonacci/issues/3"},"comments":{"href":"https://api.github.com/repos/RayHightower/fibonacci/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/RayHightower/fibonacci/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/RayHightower/fibonacci/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/RayHightower/fibonacci/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/RayHightower/fibonacci/statuses/3560858467d3e2bb7f5f9efceafa8dcd0ecdc52e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"RayHightower","id":3715,"avatar_url":"https://avatars.githubusercontent.com/u/3715?v=3","gravatar_id":"","url":"https://api.github.com/users/RayHightower","html_url":"https://github.com/RayHightower","followers_url":"https://api.github.com/users/RayHightower/followers","following_url":"https://api.github.com/users/RayHightower/following{/other_user}","gists_url":"https://api.github.com/users/RayHightower/gists{/gist_id}","starred_url":"https://api.github.com/users/RayHightower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RayHightower/subscriptions","organizations_url":"https://api.github.com/users/RayHightower/orgs","repos_url":"https://api.github.com/users/RayHightower/repos","events_url":"https://api.github.com/users/RayHightower/events{/privacy}","received_events_url":"https://api.github.com/users/RayHightower/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":9,"deletions":16,"changed_files":1}}