{"action":"opened","number":61,"pull_request":{"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/61","id":30811744,"html_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/61","diff_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/61.diff","patch_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/61.patch","issue_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/61","number":61,"state":"open","locked":false,"title":"Class 4 api homework","user":{"login":"tylerswartz","id":5152596,"avatar_url":"https://avatars.githubusercontent.com/u/5152596?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerswartz","html_url":"https://github.com/tylerswartz","followers_url":"https://api.github.com/users/tylerswartz/followers","following_url":"https://api.github.com/users/tylerswartz/following{/other_user}","gists_url":"https://api.github.com/users/tylerswartz/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerswartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerswartz/subscriptions","organizations_url":"https://api.github.com/users/tylerswartz/orgs","repos_url":"https://api.github.com/users/tylerswartz/repos","events_url":"https://api.github.com/users/tylerswartz/events{/privacy}","received_events_url":"https://api.github.com/users/tylerswartz/received_events","type":"User","site_admin":false},"body":"submitting my api homework. One thing I wasn't able to figure out is how to validate the input from the user that it is an integer. I found a statement `input.is_a?Integer == true` that verifies it, but I don't understand how to put that in a loop that would keep asking the user for input until it is correct.","created_at":"2015-03-09T23:58:02Z","updated_at":"2015-03-09T23:58:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/61/commits","review_comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/61/comments","review_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/61/comments","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/e9e4084bda7f93b1b327bd7dfa56198e22980ef5","head":{"label":"tylerswartz:master","ref":"master","sha":"e9e4084bda7f93b1b327bd7dfa56198e22980ef5","user":{"login":"tylerswartz","id":5152596,"avatar_url":"https://avatars.githubusercontent.com/u/5152596?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerswartz","html_url":"https://github.com/tylerswartz","followers_url":"https://api.github.com/users/tylerswartz/followers","following_url":"https://api.github.com/users/tylerswartz/following{/other_user}","gists_url":"https://api.github.com/users/tylerswartz/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerswartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerswartz/subscriptions","organizations_url":"https://api.github.com/users/tylerswartz/orgs","repos_url":"https://api.github.com/users/tylerswartz/repos","events_url":"https://api.github.com/users/tylerswartz/events{/privacy}","received_events_url":"https://api.github.com/users/tylerswartz/received_events","type":"User","site_admin":false},"repo":{"id":31297273,"name":"bewd_sf_8_homework","full_name":"tylerswartz/bewd_sf_8_homework","owner":{"login":"tylerswartz","id":5152596,"avatar_url":"https://avatars.githubusercontent.com/u/5152596?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerswartz","html_url":"https://github.com/tylerswartz","followers_url":"https://api.github.com/users/tylerswartz/followers","following_url":"https://api.github.com/users/tylerswartz/following{/other_user}","gists_url":"https://api.github.com/users/tylerswartz/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerswartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerswartz/subscriptions","organizations_url":"https://api.github.com/users/tylerswartz/orgs","repos_url":"https://api.github.com/users/tylerswartz/repos","events_url":"https://api.github.com/users/tylerswartz/events{/privacy}","received_events_url":"https://api.github.com/users/tylerswartz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tylerswartz/bewd_sf_8_homework","description":"","fork":true,"url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework","forks_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/forks","keys_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/teams","hooks_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/hooks","issue_events_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/events","assignees_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/tags","blobs_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/languages","stargazers_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/stargazers","contributors_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/contributors","subscribers_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/subscribers","subscription_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/subscription","commits_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/merges","archive_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/downloads","issues_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/tylerswartz/bewd_sf_8_homework/releases{/id}","created_at":"2015-02-25T04:32:07Z","updated_at":"2015-03-09T23:56:19Z","pushed_at":"2015-03-09T23:56:19Z","git_url":"git://github.com/tylerswartz/bewd_sf_8_homework.git","ssh_url":"git@github.com:tylerswartz/bewd_sf_8_homework.git","clone_url":"https://github.com/tylerswartz/bewd_sf_8_homework.git","svn_url":"https://github.com/tylerswartz/bewd_sf_8_homework","homepage":null,"size":101,"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":"1d927ff2790012fe7cf2fc358152ae0b43520389","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":31043896,"name":"bewd_sf_8_homework","full_name":"ga-students/bewd_sf_8_homework","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_sf_8_homework","description":"","fork":false,"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework","forks_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/forks","keys_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/teams","hooks_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/hooks","issue_events_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/events","assignees_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/tags","blobs_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/languages","stargazers_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/stargazers","contributors_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/contributors","subscribers_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/subscribers","subscription_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/subscription","commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/merges","archive_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/downloads","issues_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/releases{/id}","created_at":"2015-02-20T00:10:49Z","updated_at":"2015-03-09T02:11:17Z","pushed_at":"2015-03-09T02:11:17Z","git_url":"git://github.com/ga-students/bewd_sf_8_homework.git","ssh_url":"git@github.com:ga-students/bewd_sf_8_homework.git","clone_url":"https://github.com/ga-students/bewd_sf_8_homework.git","svn_url":"https://github.com/ga-students/bewd_sf_8_homework","homepage":null,"size":6420,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":5,"forks":30,"open_issues":5,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/61"},"html":{"href":"https://github.com/ga-students/bewd_sf_8_homework/pull/61"},"issue":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/61"},"comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/e9e4084bda7f93b1b327bd7dfa56198e22980ef5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":25,"deletions":0,"changed_files":1}}