{"action":"created","comment":{"url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/comments/24332920","id":24332920,"diff_hunk":"@@ -0,0 +1,48 @@\n+require 'pry'\n+\n+class FortuneCookie\n+\n+\tdef initialize\n+\t\t@wrapped = true\n+\t\t@cracked = false\n+\t\t@fortunes = [ \n+\t\t\t\"Do less, to do more\" , \"Work hard, Play harder\" , \n+\t\t\t\"Crouching tiger, Hidden Dragon\" , \"Love is life, Life is love\"\n+\t\t\t\t\t]\n+\tend\n+\n+\tdef wrapped?\n+\t\treturn @wrapped\n+\tend\n+\n+\tdef cracked?\n+\t\treturn @cracked\n+\tend\n+\n+\tdef unwrap\n+\t\t@wrapped = false\n+\tend\n+\n+\tdef crack\n+\t\tif @wrapped == true\n+\t\t\treturn \"You must unwrap it first!\"\n+\t\telsif @wrapped == false\n+\t\t\t@cracked = true\n+\t\tend\n+\tend\n+\n+\tdef read\n+\t\tif @wrapped == true\n+\t\t\treturn \"You must unwrap it and crack it first.\"\n+\t\telsif @cracked == false\n+\t\t\treturn \"You must crack it first.\"\n+\t\telse \n+\t\t\treturn @fortunes.sample\n+\t\tend\n+\tend\n+end \n+","path":"class04/nick/fortune_cookie.rb","position":44,"original_position":44,"commit_id":"b5d04674987b9ea7191b5165932c461eeac38b20","original_commit_id":"b5d04674987b9ea7191b5165932c461eeac38b20","user":{"login":"mobjohnson","id":7301882,"avatar_url":"https://avatars.githubusercontent.com/u/7301882?v=3","gravatar_id":"","url":"https://api.github.com/users/mobjohnson","html_url":"https://github.com/mobjohnson","followers_url":"https://api.github.com/users/mobjohnson/followers","following_url":"https://api.github.com/users/mobjohnson/following{/other_user}","gists_url":"https://api.github.com/users/mobjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/mobjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobjohnson/subscriptions","organizations_url":"https://api.github.com/users/mobjohnson/orgs","repos_url":"https://api.github.com/users/mobjohnson/repos","events_url":"https://api.github.com/users/mobjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/mobjohnson/received_events","type":"User","site_admin":false},"body":"Great job!","created_at":"2015-02-09T14:58:16Z","updated_at":"2015-02-09T14:58:16Z","html_url":"https://github.com/ga-students/BEWD_DC_JAN2015/pull/41#discussion_r24332920","pull_request_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/comments/24332920"},"html":{"href":"https://github.com/ga-students/BEWD_DC_JAN2015/pull/41#discussion_r24332920"},"pull_request":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41","id":28887069,"html_url":"https://github.com/ga-students/BEWD_DC_JAN2015/pull/41","diff_url":"https://github.com/ga-students/BEWD_DC_JAN2015/pull/41.diff","patch_url":"https://github.com/ga-students/BEWD_DC_JAN2015/pull/41.patch","issue_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/issues/41","number":41,"state":"open","locked":false,"title":"Adding HW to class04","user":{"login":"nolds9","id":10698044,"avatar_url":"https://avatars.githubusercontent.com/u/10698044?v=3","gravatar_id":"","url":"https://api.github.com/users/nolds9","html_url":"https://github.com/nolds9","followers_url":"https://api.github.com/users/nolds9/followers","following_url":"https://api.github.com/users/nolds9/following{/other_user}","gists_url":"https://api.github.com/users/nolds9/gists{/gist_id}","starred_url":"https://api.github.com/users/nolds9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolds9/subscriptions","organizations_url":"https://api.github.com/users/nolds9/orgs","repos_url":"https://api.github.com/users/nolds9/repos","events_url":"https://api.github.com/users/nolds9/events{/privacy}","received_events_url":"https://api.github.com/users/nolds9/received_events","type":"User","site_admin":false},"body":"Fortune 5/5\r\nScrabble 3.5/5\r\n","created_at":"2015-02-08T21:30:39Z","updated_at":"2015-02-09T14:58:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"336381d579db79be5948fc3ccf108a14443191f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41/commits","review_comments_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41/comments","review_comment_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/issues/41/comments","statuses_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/statuses/b5d04674987b9ea7191b5165932c461eeac38b20","head":{"label":"nolds9:master","ref":"master","sha":"b5d04674987b9ea7191b5165932c461eeac38b20","user":{"login":"nolds9","id":10698044,"avatar_url":"https://avatars.githubusercontent.com/u/10698044?v=3","gravatar_id":"","url":"https://api.github.com/users/nolds9","html_url":"https://github.com/nolds9","followers_url":"https://api.github.com/users/nolds9/followers","following_url":"https://api.github.com/users/nolds9/following{/other_user}","gists_url":"https://api.github.com/users/nolds9/gists{/gist_id}","starred_url":"https://api.github.com/users/nolds9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolds9/subscriptions","organizations_url":"https://api.github.com/users/nolds9/orgs","repos_url":"https://api.github.com/users/nolds9/repos","events_url":"https://api.github.com/users/nolds9/events{/privacy}","received_events_url":"https://api.github.com/users/nolds9/received_events","type":"User","site_admin":false},"repo":{"id":29995669,"name":"BEWD_DC_JAN2015","full_name":"nolds9/BEWD_DC_JAN2015","owner":{"login":"nolds9","id":10698044,"avatar_url":"https://avatars.githubusercontent.com/u/10698044?v=3","gravatar_id":"","url":"https://api.github.com/users/nolds9","html_url":"https://github.com/nolds9","followers_url":"https://api.github.com/users/nolds9/followers","following_url":"https://api.github.com/users/nolds9/following{/other_user}","gists_url":"https://api.github.com/users/nolds9/gists{/gist_id}","starred_url":"https://api.github.com/users/nolds9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolds9/subscriptions","organizations_url":"https://api.github.com/users/nolds9/orgs","repos_url":"https://api.github.com/users/nolds9/repos","events_url":"https://api.github.com/users/nolds9/events{/privacy}","received_events_url":"https://api.github.com/users/nolds9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nolds9/BEWD_DC_JAN2015","description":"Back End Web Development, Washington DC, Jan 2015","fork":true,"url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015","forks_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/forks","keys_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/teams","hooks_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/hooks","issue_events_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/issues/events{/number}","events_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/events","assignees_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/assignees{/user}","branches_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/branches{/branch}","tags_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/tags","blobs_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/statuses/{sha}","languages_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/languages","stargazers_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/stargazers","contributors_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/contributors","subscribers_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/subscribers","subscription_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/subscription","commits_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/issues/comments/{number}","contents_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/contents/{+path}","compare_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/merges","archive_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/downloads","issues_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/issues{/number}","pulls_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/pulls{/number}","milestones_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/milestones{/number}","notifications_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/labels{/name}","releases_url":"https://api.github.com/repos/nolds9/BEWD_DC_JAN2015/releases{/id}","created_at":"2015-01-29T00:33:19Z","updated_at":"2015-02-08T21:29:29Z","pushed_at":"2015-02-08T21:29:29Z","git_url":"git://github.com/nolds9/BEWD_DC_JAN2015.git","ssh_url":"git@github.com:nolds9/BEWD_DC_JAN2015.git","clone_url":"https://github.com/nolds9/BEWD_DC_JAN2015.git","svn_url":"https://github.com/nolds9/BEWD_DC_JAN2015","homepage":"","size":2129,"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":"ga-students:master","ref":"master","sha":"6bc48562e86cae55a45db4b955a014659cdec167","user":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"repo":{"id":29486984,"name":"BEWD_DC_JAN2015","full_name":"ga-students/BEWD_DC_JAN2015","owner":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-students/BEWD_DC_JAN2015","description":"Back End Web Development, Washington DC, Jan 2015","fork":false,"url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015","forks_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/forks","keys_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/teams","hooks_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/hooks","issue_events_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/issues/events{/number}","events_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/events","assignees_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/assignees{/user}","branches_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/branches{/branch}","tags_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/tags","blobs_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/languages","stargazers_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/stargazers","contributors_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/contributors","subscribers_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/subscribers","subscription_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/subscription","commits_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/issues/comments/{number}","contents_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/contents/{+path}","compare_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/merges","archive_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/downloads","issues_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/issues{/number}","pulls_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/labels{/name}","releases_url":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/releases{/id}","created_at":"2015-01-19T19:10:57Z","updated_at":"2015-02-09T14:57:08Z","pushed_at":"2015-02-09T14:57:07Z","git_url":"git://github.com/ga-students/BEWD_DC_JAN2015.git","ssh_url":"git@github.com:ga-students/BEWD_DC_JAN2015.git","clone_url":"https://github.com/ga-students/BEWD_DC_JAN2015.git","svn_url":"https://github.com/ga-students/BEWD_DC_JAN2015","homepage":"","size":3189,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":6,"forks":25,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41"},"html":{"href":"https://github.com/ga-students/BEWD_DC_JAN2015/pull/41"},"issue":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/issues/41"},"comments":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/ga-students/BEWD_DC_JAN2015/statuses/b5d04674987b9ea7191b5165932c461eeac38b20"}}}}