{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/2","id":27386859,"html_url":"https://github.com/ogonzal87/talkative_robot/pull/2","diff_url":"https://github.com/ogonzal87/talkative_robot/pull/2.diff","patch_url":"https://github.com/ogonzal87/talkative_robot/pull/2.patch","issue_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/2","number":2,"state":"open","locked":false,"title":"Finished Methods Lab","user":{"login":"ogonzal87","id":10442715,"avatar_url":"https://avatars.githubusercontent.com/u/10442715?v=3","gravatar_id":"","url":"https://api.github.com/users/ogonzal87","html_url":"https://github.com/ogonzal87","followers_url":"https://api.github.com/users/ogonzal87/followers","following_url":"https://api.github.com/users/ogonzal87/following{/other_user}","gists_url":"https://api.github.com/users/ogonzal87/gists{/gist_id}","starred_url":"https://api.github.com/users/ogonzal87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogonzal87/subscriptions","organizations_url":"https://api.github.com/users/ogonzal87/orgs","repos_url":"https://api.github.com/users/ogonzal87/repos","events_url":"https://api.github.com/users/ogonzal87/events{/privacy}","received_events_url":"https://api.github.com/users/ogonzal87/received_events","type":"User","site_admin":false},"body":"{\r\n  \"comfortability\": 3,\r\n  \"completeness\": 4,\r\n  \"questions\": \"I know what a method does but I do not feel comfortable with the how methods work with conditionals like \"case\" in the example below. I could not figure it out. Also, I am still unsure as to the need for \"return\" in some cases and not in others.\r\n\r\n# - Case (if < 75 “You’ll be 75 in x years”, == 75 (you’re 75!), > 75 “You turned 75 y years ago”) X\r\n case age \r\n when 75..75\r\n \tputs \"You're 75!\"\r\n when 0..75\r\n \tage_delta_minus = (75 -  age)\r\n \tputs \"You'll be 75 in #{age_delta_minus} years\" \r\n when 75..300\r\n \tage_delta_plus = (age - 75)\r\n \tputs \"You turned 75 #{age_delta_plus} ago\"\r\n else \r\n \tputs \"You're dead!\"\r\nend\r\n}","created_at":"2015-01-14T21:53:38Z","updated_at":"2015-01-14T21:53:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/2/comments","statuses_url":"https://api.github.com/repos/ogonzal87/talkative_robot/statuses/ee2d7d38240155dfe1f0c2b5224f98c72d943d3e","head":{"label":"ogonzal87:methods_lab","ref":"methods_lab","sha":"ee2d7d38240155dfe1f0c2b5224f98c72d943d3e","user":{"login":"ogonzal87","id":10442715,"avatar_url":"https://avatars.githubusercontent.com/u/10442715?v=3","gravatar_id":"","url":"https://api.github.com/users/ogonzal87","html_url":"https://github.com/ogonzal87","followers_url":"https://api.github.com/users/ogonzal87/followers","following_url":"https://api.github.com/users/ogonzal87/following{/other_user}","gists_url":"https://api.github.com/users/ogonzal87/gists{/gist_id}","starred_url":"https://api.github.com/users/ogonzal87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogonzal87/subscriptions","organizations_url":"https://api.github.com/users/ogonzal87/orgs","repos_url":"https://api.github.com/users/ogonzal87/repos","events_url":"https://api.github.com/users/ogonzal87/events{/privacy}","received_events_url":"https://api.github.com/users/ogonzal87/received_events","type":"User","site_admin":false},"repo":{"id":29248264,"name":"talkative_robot","full_name":"ogonzal87/talkative_robot","owner":{"login":"ogonzal87","id":10442715,"avatar_url":"https://avatars.githubusercontent.com/u/10442715?v=3","gravatar_id":"","url":"https://api.github.com/users/ogonzal87","html_url":"https://github.com/ogonzal87","followers_url":"https://api.github.com/users/ogonzal87/followers","following_url":"https://api.github.com/users/ogonzal87/following{/other_user}","gists_url":"https://api.github.com/users/ogonzal87/gists{/gist_id}","starred_url":"https://api.github.com/users/ogonzal87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogonzal87/subscriptions","organizations_url":"https://api.github.com/users/ogonzal87/orgs","repos_url":"https://api.github.com/users/ogonzal87/repos","events_url":"https://api.github.com/users/ogonzal87/events{/privacy}","received_events_url":"https://api.github.com/users/ogonzal87/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ogonzal87/talkative_robot","description":"","fork":false,"url":"https://api.github.com/repos/ogonzal87/talkative_robot","forks_url":"https://api.github.com/repos/ogonzal87/talkative_robot/forks","keys_url":"https://api.github.com/repos/ogonzal87/talkative_robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ogonzal87/talkative_robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ogonzal87/talkative_robot/teams","hooks_url":"https://api.github.com/repos/ogonzal87/talkative_robot/hooks","issue_events_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/events{/number}","events_url":"https://api.github.com/repos/ogonzal87/talkative_robot/events","assignees_url":"https://api.github.com/repos/ogonzal87/talkative_robot/assignees{/user}","branches_url":"https://api.github.com/repos/ogonzal87/talkative_robot/branches{/branch}","tags_url":"https://api.github.com/repos/ogonzal87/talkative_robot/tags","blobs_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ogonzal87/talkative_robot/statuses/{sha}","languages_url":"https://api.github.com/repos/ogonzal87/talkative_robot/languages","stargazers_url":"https://api.github.com/repos/ogonzal87/talkative_robot/stargazers","contributors_url":"https://api.github.com/repos/ogonzal87/talkative_robot/contributors","subscribers_url":"https://api.github.com/repos/ogonzal87/talkative_robot/subscribers","subscription_url":"https://api.github.com/repos/ogonzal87/talkative_robot/subscription","commits_url":"https://api.github.com/repos/ogonzal87/talkative_robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ogonzal87/talkative_robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/comments/{number}","contents_url":"https://api.github.com/repos/ogonzal87/talkative_robot/contents/{+path}","compare_url":"https://api.github.com/repos/ogonzal87/talkative_robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ogonzal87/talkative_robot/merges","archive_url":"https://api.github.com/repos/ogonzal87/talkative_robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ogonzal87/talkative_robot/downloads","issues_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues{/number}","pulls_url":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls{/number}","milestones_url":"https://api.github.com/repos/ogonzal87/talkative_robot/milestones{/number}","notifications_url":"https://api.github.com/repos/ogonzal87/talkative_robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ogonzal87/talkative_robot/labels{/name}","releases_url":"https://api.github.com/repos/ogonzal87/talkative_robot/releases{/id}","created_at":"2015-01-14T14:35:22Z","updated_at":"2015-01-14T19:11:15Z","pushed_at":"2015-01-14T21:44:46Z","git_url":"git://github.com/ogonzal87/talkative_robot.git","ssh_url":"git@github.com:ogonzal87/talkative_robot.git","clone_url":"https://github.com/ogonzal87/talkative_robot.git","svn_url":"https://github.com/ogonzal87/talkative_robot","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ogonzal87:master","ref":"master","sha":"b61894d78e12d024761f063a7416db1e7684d929","user":{"login":"ogonzal87","id":10442715,"avatar_url":"https://avatars.githubusercontent.com/u/10442715?v=3","gravatar_id":"","url":"https://api.github.com/users/ogonzal87","html_url":"https://github.com/ogonzal87","followers_url":"https://api.github.com/users/ogonzal87/followers","following_url":"https://api.github.com/users/ogonzal87/following{/other_user}","gists_url":"https://api.github.com/users/ogonzal87/gists{/gist_id}","starred_url":"https://api.github.com/users/ogonzal87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogonzal87/subscriptions","organizations_url":"https://api.github.com/users/ogonzal87/orgs","repos_url":"https://api.github.com/users/ogonzal87/repos","events_url":"https://api.github.com/users/ogonzal87/events{/privacy}","received_events_url":"https://api.github.com/users/ogonzal87/received_events","type":"User","site_admin":false},"repo":{"id":29248264,"name":"talkative_robot","full_name":"ogonzal87/talkative_robot","owner":{"login":"ogonzal87","id":10442715,"avatar_url":"https://avatars.githubusercontent.com/u/10442715?v=3","gravatar_id":"","url":"https://api.github.com/users/ogonzal87","html_url":"https://github.com/ogonzal87","followers_url":"https://api.github.com/users/ogonzal87/followers","following_url":"https://api.github.com/users/ogonzal87/following{/other_user}","gists_url":"https://api.github.com/users/ogonzal87/gists{/gist_id}","starred_url":"https://api.github.com/users/ogonzal87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogonzal87/subscriptions","organizations_url":"https://api.github.com/users/ogonzal87/orgs","repos_url":"https://api.github.com/users/ogonzal87/repos","events_url":"https://api.github.com/users/ogonzal87/events{/privacy}","received_events_url":"https://api.github.com/users/ogonzal87/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ogonzal87/talkative_robot","description":"","fork":false,"url":"https://api.github.com/repos/ogonzal87/talkative_robot","forks_url":"https://api.github.com/repos/ogonzal87/talkative_robot/forks","keys_url":"https://api.github.com/repos/ogonzal87/talkative_robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ogonzal87/talkative_robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ogonzal87/talkative_robot/teams","hooks_url":"https://api.github.com/repos/ogonzal87/talkative_robot/hooks","issue_events_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/events{/number}","events_url":"https://api.github.com/repos/ogonzal87/talkative_robot/events","assignees_url":"https://api.github.com/repos/ogonzal87/talkative_robot/assignees{/user}","branches_url":"https://api.github.com/repos/ogonzal87/talkative_robot/branches{/branch}","tags_url":"https://api.github.com/repos/ogonzal87/talkative_robot/tags","blobs_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ogonzal87/talkative_robot/statuses/{sha}","languages_url":"https://api.github.com/repos/ogonzal87/talkative_robot/languages","stargazers_url":"https://api.github.com/repos/ogonzal87/talkative_robot/stargazers","contributors_url":"https://api.github.com/repos/ogonzal87/talkative_robot/contributors","subscribers_url":"https://api.github.com/repos/ogonzal87/talkative_robot/subscribers","subscription_url":"https://api.github.com/repos/ogonzal87/talkative_robot/subscription","commits_url":"https://api.github.com/repos/ogonzal87/talkative_robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ogonzal87/talkative_robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ogonzal87/talkative_robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/comments/{number}","contents_url":"https://api.github.com/repos/ogonzal87/talkative_robot/contents/{+path}","compare_url":"https://api.github.com/repos/ogonzal87/talkative_robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ogonzal87/talkative_robot/merges","archive_url":"https://api.github.com/repos/ogonzal87/talkative_robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ogonzal87/talkative_robot/downloads","issues_url":"https://api.github.com/repos/ogonzal87/talkative_robot/issues{/number}","pulls_url":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls{/number}","milestones_url":"https://api.github.com/repos/ogonzal87/talkative_robot/milestones{/number}","notifications_url":"https://api.github.com/repos/ogonzal87/talkative_robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ogonzal87/talkative_robot/labels{/name}","releases_url":"https://api.github.com/repos/ogonzal87/talkative_robot/releases{/id}","created_at":"2015-01-14T14:35:22Z","updated_at":"2015-01-14T19:11:15Z","pushed_at":"2015-01-14T21:44:46Z","git_url":"git://github.com/ogonzal87/talkative_robot.git","ssh_url":"git@github.com:ogonzal87/talkative_robot.git","clone_url":"https://github.com/ogonzal87/talkative_robot.git","svn_url":"https://github.com/ogonzal87/talkative_robot","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/2"},"html":{"href":"https://github.com/ogonzal87/talkative_robot/pull/2"},"issue":{"href":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/2"},"comments":{"href":"https://api.github.com/repos/ogonzal87/talkative_robot/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ogonzal87/talkative_robot/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ogonzal87/talkative_robot/statuses/ee2d7d38240155dfe1f0c2b5224f98c72d943d3e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":133,"deletions":0,"changed_files":1}}