{"action":"created","comment":{"url":"https://api.github.com/repos/trendwithin/code_bank/pulls/comments/26516452","id":26516452,"diff_hunk":"@@ -0,0 +1,12 @@\n+class NthFibonacci\n+  attr_reader :n\n+  def initialize(num)\n+    @n = num\n+  end\n+\n+  def fib\n+   basecase = [0, 1]\n+   (1...n).each { basecase.push(basecase.last(2).inject(:+)) }","path":"nthprime/lib/nthfibonacci.rb","position":9,"original_position":9,"commit_id":"586404fda0a9c49064897c0662ca0ce0170aadb4","original_commit_id":"586404fda0a9c49064897c0662ca0ce0170aadb4","user":{"login":"mandarenee","id":8763401,"avatar_url":"https://avatars.githubusercontent.com/u/8763401?v=3","gravatar_id":"","url":"https://api.github.com/users/mandarenee","html_url":"https://github.com/mandarenee","followers_url":"https://api.github.com/users/mandarenee/followers","following_url":"https://api.github.com/users/mandarenee/following{/other_user}","gists_url":"https://api.github.com/users/mandarenee/gists{/gist_id}","starred_url":"https://api.github.com/users/mandarenee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandarenee/subscriptions","organizations_url":"https://api.github.com/users/mandarenee/orgs","repos_url":"https://api.github.com/users/mandarenee/repos","events_url":"https://api.github.com/users/mandarenee/events{/privacy}","received_events_url":"https://api.github.com/users/mandarenee/received_events","type":"User","site_admin":false},"body":"Great brief and precise statement!","created_at":"2015-03-16T18:58:24Z","updated_at":"2015-03-16T18:58:24Z","html_url":"https://github.com/trendwithin/code_bank/pull/2#discussion_r26516452","pull_request_url":"https://api.github.com/repos/trendwithin/code_bank/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/trendwithin/code_bank/pulls/comments/26516452"},"html":{"href":"https://github.com/trendwithin/code_bank/pull/2#discussion_r26516452"},"pull_request":{"href":"https://api.github.com/repos/trendwithin/code_bank/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/trendwithin/code_bank/pulls/2","id":30624568,"html_url":"https://github.com/trendwithin/code_bank/pull/2","diff_url":"https://github.com/trendwithin/code_bank/pull/2.diff","patch_url":"https://github.com/trendwithin/code_bank/pull/2.patch","issue_url":"https://api.github.com/repos/trendwithin/code_bank/issues/2","number":2,"state":"open","locked":false,"title":"Nth Prime Solved Using Sieve","user":{"login":"trendwithin","id":8145031,"avatar_url":"https://avatars.githubusercontent.com/u/8145031?v=3","gravatar_id":"","url":"https://api.github.com/users/trendwithin","html_url":"https://github.com/trendwithin","followers_url":"https://api.github.com/users/trendwithin/followers","following_url":"https://api.github.com/users/trendwithin/following{/other_user}","gists_url":"https://api.github.com/users/trendwithin/gists{/gist_id}","starred_url":"https://api.github.com/users/trendwithin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trendwithin/subscriptions","organizations_url":"https://api.github.com/users/trendwithin/orgs","repos_url":"https://api.github.com/users/trendwithin/repos","events_url":"https://api.github.com/users/trendwithin/events{/privacy}","received_events_url":"https://api.github.com/users/trendwithin/received_events","type":"User","site_admin":false},"body":"my approach is explained in the README","created_at":"2015-03-06T06:52:12Z","updated_at":"2015-03-16T18:58:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e80aaa59996112b12fcb98e9e5e01cd13d6bdef3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/trendwithin/code_bank/pulls/2/commits","review_comments_url":"https://api.github.com/repos/trendwithin/code_bank/pulls/2/comments","review_comment_url":"https://api.github.com/repos/trendwithin/code_bank/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trendwithin/code_bank/issues/2/comments","statuses_url":"https://api.github.com/repos/trendwithin/code_bank/statuses/586404fda0a9c49064897c0662ca0ce0170aadb4","head":{"label":"trendwithin:nthprime","ref":"nthprime","sha":"586404fda0a9c49064897c0662ca0ce0170aadb4","user":{"login":"trendwithin","id":8145031,"avatar_url":"https://avatars.githubusercontent.com/u/8145031?v=3","gravatar_id":"","url":"https://api.github.com/users/trendwithin","html_url":"https://github.com/trendwithin","followers_url":"https://api.github.com/users/trendwithin/followers","following_url":"https://api.github.com/users/trendwithin/following{/other_user}","gists_url":"https://api.github.com/users/trendwithin/gists{/gist_id}","starred_url":"https://api.github.com/users/trendwithin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trendwithin/subscriptions","organizations_url":"https://api.github.com/users/trendwithin/orgs","repos_url":"https://api.github.com/users/trendwithin/repos","events_url":"https://api.github.com/users/trendwithin/events{/privacy}","received_events_url":"https://api.github.com/users/trendwithin/received_events","type":"User","site_admin":false},"repo":{"id":31623553,"name":"code_bank","full_name":"trendwithin/code_bank","owner":{"login":"trendwithin","id":8145031,"avatar_url":"https://avatars.githubusercontent.com/u/8145031?v=3","gravatar_id":"","url":"https://api.github.com/users/trendwithin","html_url":"https://github.com/trendwithin","followers_url":"https://api.github.com/users/trendwithin/followers","following_url":"https://api.github.com/users/trendwithin/following{/other_user}","gists_url":"https://api.github.com/users/trendwithin/gists{/gist_id}","starred_url":"https://api.github.com/users/trendwithin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trendwithin/subscriptions","organizations_url":"https://api.github.com/users/trendwithin/orgs","repos_url":"https://api.github.com/users/trendwithin/repos","events_url":"https://api.github.com/users/trendwithin/events{/privacy}","received_events_url":"https://api.github.com/users/trendwithin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trendwithin/code_bank","description":"Repository of Snippets, Exercises, Katas, and Projects","fork":false,"url":"https://api.github.com/repos/trendwithin/code_bank","forks_url":"https://api.github.com/repos/trendwithin/code_bank/forks","keys_url":"https://api.github.com/repos/trendwithin/code_bank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trendwithin/code_bank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trendwithin/code_bank/teams","hooks_url":"https://api.github.com/repos/trendwithin/code_bank/hooks","issue_events_url":"https://api.github.com/repos/trendwithin/code_bank/issues/events{/number}","events_url":"https://api.github.com/repos/trendwithin/code_bank/events","assignees_url":"https://api.github.com/repos/trendwithin/code_bank/assignees{/user}","branches_url":"https://api.github.com/repos/trendwithin/code_bank/branches{/branch}","tags_url":"https://api.github.com/repos/trendwithin/code_bank/tags","blobs_url":"https://api.github.com/repos/trendwithin/code_bank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trendwithin/code_bank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trendwithin/code_bank/git/refs{/sha}","trees_url":"https://api.github.com/repos/trendwithin/code_bank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trendwithin/code_bank/statuses/{sha}","languages_url":"https://api.github.com/repos/trendwithin/code_bank/languages","stargazers_url":"https://api.github.com/repos/trendwithin/code_bank/stargazers","contributors_url":"https://api.github.com/repos/trendwithin/code_bank/contributors","subscribers_url":"https://api.github.com/repos/trendwithin/code_bank/subscribers","subscription_url":"https://api.github.com/repos/trendwithin/code_bank/subscription","commits_url":"https://api.github.com/repos/trendwithin/code_bank/commits{/sha}","git_commits_url":"https://api.github.com/repos/trendwithin/code_bank/git/commits{/sha}","comments_url":"https://api.github.com/repos/trendwithin/code_bank/comments{/number}","issue_comment_url":"https://api.github.com/repos/trendwithin/code_bank/issues/comments{/number}","contents_url":"https://api.github.com/repos/trendwithin/code_bank/contents/{+path}","compare_url":"https://api.github.com/repos/trendwithin/code_bank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trendwithin/code_bank/merges","archive_url":"https://api.github.com/repos/trendwithin/code_bank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trendwithin/code_bank/downloads","issues_url":"https://api.github.com/repos/trendwithin/code_bank/issues{/number}","pulls_url":"https://api.github.com/repos/trendwithin/code_bank/pulls{/number}","milestones_url":"https://api.github.com/repos/trendwithin/code_bank/milestones{/number}","notifications_url":"https://api.github.com/repos/trendwithin/code_bank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trendwithin/code_bank/labels{/name}","releases_url":"https://api.github.com/repos/trendwithin/code_bank/releases{/id}","created_at":"2015-03-03T21:55:20Z","updated_at":"2015-03-16T03:46:49Z","pushed_at":"2015-03-16T03:46:49Z","git_url":"git://github.com/trendwithin/code_bank.git","ssh_url":"git@github.com:trendwithin/code_bank.git","clone_url":"https://github.com/trendwithin/code_bank.git","svn_url":"https://github.com/trendwithin/code_bank","homepage":null,"size":156,"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":"trendwithin:master","ref":"master","sha":"637358fc07ff55d53b10c3d486610deeb8e7687f","user":{"login":"trendwithin","id":8145031,"avatar_url":"https://avatars.githubusercontent.com/u/8145031?v=3","gravatar_id":"","url":"https://api.github.com/users/trendwithin","html_url":"https://github.com/trendwithin","followers_url":"https://api.github.com/users/trendwithin/followers","following_url":"https://api.github.com/users/trendwithin/following{/other_user}","gists_url":"https://api.github.com/users/trendwithin/gists{/gist_id}","starred_url":"https://api.github.com/users/trendwithin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trendwithin/subscriptions","organizations_url":"https://api.github.com/users/trendwithin/orgs","repos_url":"https://api.github.com/users/trendwithin/repos","events_url":"https://api.github.com/users/trendwithin/events{/privacy}","received_events_url":"https://api.github.com/users/trendwithin/received_events","type":"User","site_admin":false},"repo":{"id":31623553,"name":"code_bank","full_name":"trendwithin/code_bank","owner":{"login":"trendwithin","id":8145031,"avatar_url":"https://avatars.githubusercontent.com/u/8145031?v=3","gravatar_id":"","url":"https://api.github.com/users/trendwithin","html_url":"https://github.com/trendwithin","followers_url":"https://api.github.com/users/trendwithin/followers","following_url":"https://api.github.com/users/trendwithin/following{/other_user}","gists_url":"https://api.github.com/users/trendwithin/gists{/gist_id}","starred_url":"https://api.github.com/users/trendwithin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trendwithin/subscriptions","organizations_url":"https://api.github.com/users/trendwithin/orgs","repos_url":"https://api.github.com/users/trendwithin/repos","events_url":"https://api.github.com/users/trendwithin/events{/privacy}","received_events_url":"https://api.github.com/users/trendwithin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trendwithin/code_bank","description":"Repository of Snippets, Exercises, Katas, and Projects","fork":false,"url":"https://api.github.com/repos/trendwithin/code_bank","forks_url":"https://api.github.com/repos/trendwithin/code_bank/forks","keys_url":"https://api.github.com/repos/trendwithin/code_bank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trendwithin/code_bank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trendwithin/code_bank/teams","hooks_url":"https://api.github.com/repos/trendwithin/code_bank/hooks","issue_events_url":"https://api.github.com/repos/trendwithin/code_bank/issues/events{/number}","events_url":"https://api.github.com/repos/trendwithin/code_bank/events","assignees_url":"https://api.github.com/repos/trendwithin/code_bank/assignees{/user}","branches_url":"https://api.github.com/repos/trendwithin/code_bank/branches{/branch}","tags_url":"https://api.github.com/repos/trendwithin/code_bank/tags","blobs_url":"https://api.github.com/repos/trendwithin/code_bank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trendwithin/code_bank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trendwithin/code_bank/git/refs{/sha}","trees_url":"https://api.github.com/repos/trendwithin/code_bank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trendwithin/code_bank/statuses/{sha}","languages_url":"https://api.github.com/repos/trendwithin/code_bank/languages","stargazers_url":"https://api.github.com/repos/trendwithin/code_bank/stargazers","contributors_url":"https://api.github.com/repos/trendwithin/code_bank/contributors","subscribers_url":"https://api.github.com/repos/trendwithin/code_bank/subscribers","subscription_url":"https://api.github.com/repos/trendwithin/code_bank/subscription","commits_url":"https://api.github.com/repos/trendwithin/code_bank/commits{/sha}","git_commits_url":"https://api.github.com/repos/trendwithin/code_bank/git/commits{/sha}","comments_url":"https://api.github.com/repos/trendwithin/code_bank/comments{/number}","issue_comment_url":"https://api.github.com/repos/trendwithin/code_bank/issues/comments{/number}","contents_url":"https://api.github.com/repos/trendwithin/code_bank/contents/{+path}","compare_url":"https://api.github.com/repos/trendwithin/code_bank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trendwithin/code_bank/merges","archive_url":"https://api.github.com/repos/trendwithin/code_bank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trendwithin/code_bank/downloads","issues_url":"https://api.github.com/repos/trendwithin/code_bank/issues{/number}","pulls_url":"https://api.github.com/repos/trendwithin/code_bank/pulls{/number}","milestones_url":"https://api.github.com/repos/trendwithin/code_bank/milestones{/number}","notifications_url":"https://api.github.com/repos/trendwithin/code_bank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trendwithin/code_bank/labels{/name}","releases_url":"https://api.github.com/repos/trendwithin/code_bank/releases{/id}","created_at":"2015-03-03T21:55:20Z","updated_at":"2015-03-16T03:46:49Z","pushed_at":"2015-03-16T03:46:49Z","git_url":"git://github.com/trendwithin/code_bank.git","ssh_url":"git@github.com:trendwithin/code_bank.git","clone_url":"https://github.com/trendwithin/code_bank.git","svn_url":"https://github.com/trendwithin/code_bank","homepage":null,"size":156,"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/trendwithin/code_bank/pulls/2"},"html":{"href":"https://github.com/trendwithin/code_bank/pull/2"},"issue":{"href":"https://api.github.com/repos/trendwithin/code_bank/issues/2"},"comments":{"href":"https://api.github.com/repos/trendwithin/code_bank/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/trendwithin/code_bank/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/trendwithin/code_bank/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trendwithin/code_bank/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/trendwithin/code_bank/statuses/586404fda0a9c49064897c0662ca0ce0170aadb4"}}}}