{"action":"created","comment":{"url":"https://api.github.com/repos/easmith2/2.3_testing/pulls/comments/33641446","id":33641446,"diff_hunk":"@@ -0,0 +1,37 @@\n+module Withdrawal\n+\n+  # Verify that the user can withdraw the requested amount\n+  def can_withdraw?(amt)\n+    raise ArgumentError.new('Argument is not numeric') unless amt.is_a? Fixnum\n+    self.balance >= amt && amt > 0\n+    #amt.is_a? Fixnum ? true : false","path":"classes/machine_user.rb","position":7,"original_position":7,"commit_id":"0f6d75c346257f6742166e4061fc76a562e11c71","original_commit_id":"0f6d75c346257f6742166e4061fc76a562e11c71","user":{"login":"rpearce","id":592876,"avatar_url":"https://avatars.githubusercontent.com/u/592876?v=3","gravatar_id":"","url":"https://api.github.com/users/rpearce","html_url":"https://github.com/rpearce","followers_url":"https://api.github.com/users/rpearce/followers","following_url":"https://api.github.com/users/rpearce/following{/other_user}","gists_url":"https://api.github.com/users/rpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/rpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpearce/subscriptions","organizations_url":"https://api.github.com/users/rpearce/orgs","repos_url":"https://api.github.com/users/rpearce/repos","events_url":"https://api.github.com/users/rpearce/events{/privacy}","received_events_url":"https://api.github.com/users/rpearce/received_events","type":"User","site_admin":false},"body":"can remove this line","created_at":"2015-07-01T01:27:54Z","updated_at":"2015-07-01T01:27:54Z","html_url":"https://github.com/easmith2/2.3_testing/pull/1#discussion_r33641446","pull_request_url":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/easmith2/2.3_testing/pulls/comments/33641446"},"html":{"href":"https://github.com/easmith2/2.3_testing/pull/1#discussion_r33641446"},"pull_request":{"href":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1","id":38465626,"html_url":"https://github.com/easmith2/2.3_testing/pull/1","diff_url":"https://github.com/easmith2/2.3_testing/pull/1.diff","patch_url":"https://github.com/easmith2/2.3_testing/pull/1.patch","issue_url":"https://api.github.com/repos/easmith2/2.3_testing/issues/1","number":1,"state":"open","locked":false,"title":"2.3 - Testing","user":{"login":"easmith2","id":12895987,"avatar_url":"https://avatars.githubusercontent.com/u/12895987?v=3","gravatar_id":"","url":"https://api.github.com/users/easmith2","html_url":"https://github.com/easmith2","followers_url":"https://api.github.com/users/easmith2/followers","following_url":"https://api.github.com/users/easmith2/following{/other_user}","gists_url":"https://api.github.com/users/easmith2/gists{/gist_id}","starred_url":"https://api.github.com/users/easmith2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easmith2/subscriptions","organizations_url":"https://api.github.com/users/easmith2/orgs","repos_url":"https://api.github.com/users/easmith2/repos","events_url":"https://api.github.com/users/easmith2/events{/privacy}","received_events_url":"https://api.github.com/users/easmith2/received_events","type":"User","site_admin":false},"body":"![](http://media.giphy.com/media/13MPrTLzjKpI9G/giphy.gif)\r\n\r\nI started with [this ATM code](https://github.com/andrewtpoe/1.4-ATM-Classes) from A. Poe, then went back to [my ATM code](https://github.com/easmith2/1.4-ATM-Classes) and updated it to include a few tests and some other minor improvements.\r\n\r\nI think there a lot more tests that could (and should) be written here. I didn't use a mock anywhere, save for the failed attempts to handle two different user inputs for a single method (and that mess is all currently commented out). Rather than get lost down the rabbit hole with this one, I will try to use a mock for zwitter-testing.","created_at":"2015-06-24T17:19:52Z","updated_at":"2015-07-01T01:27:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"beb014ad9c38ba047bbaa5011a940964d36a329c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1/commits","review_comments_url":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1/comments","review_comment_url":"https://api.github.com/repos/easmith2/2.3_testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/easmith2/2.3_testing/issues/1/comments","statuses_url":"https://api.github.com/repos/easmith2/2.3_testing/statuses/0f6d75c346257f6742166e4061fc76a562e11c71","head":{"label":"easmith2:dev","ref":"dev","sha":"0f6d75c346257f6742166e4061fc76a562e11c71","user":{"login":"easmith2","id":12895987,"avatar_url":"https://avatars.githubusercontent.com/u/12895987?v=3","gravatar_id":"","url":"https://api.github.com/users/easmith2","html_url":"https://github.com/easmith2","followers_url":"https://api.github.com/users/easmith2/followers","following_url":"https://api.github.com/users/easmith2/following{/other_user}","gists_url":"https://api.github.com/users/easmith2/gists{/gist_id}","starred_url":"https://api.github.com/users/easmith2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easmith2/subscriptions","organizations_url":"https://api.github.com/users/easmith2/orgs","repos_url":"https://api.github.com/users/easmith2/repos","events_url":"https://api.github.com/users/easmith2/events{/privacy}","received_events_url":"https://api.github.com/users/easmith2/received_events","type":"User","site_admin":false},"repo":{"id":37998806,"name":"2.3_testing","full_name":"easmith2/2.3_testing","owner":{"login":"easmith2","id":12895987,"avatar_url":"https://avatars.githubusercontent.com/u/12895987?v=3","gravatar_id":"","url":"https://api.github.com/users/easmith2","html_url":"https://github.com/easmith2","followers_url":"https://api.github.com/users/easmith2/followers","following_url":"https://api.github.com/users/easmith2/following{/other_user}","gists_url":"https://api.github.com/users/easmith2/gists{/gist_id}","starred_url":"https://api.github.com/users/easmith2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easmith2/subscriptions","organizations_url":"https://api.github.com/users/easmith2/orgs","repos_url":"https://api.github.com/users/easmith2/repos","events_url":"https://api.github.com/users/easmith2/events{/privacy}","received_events_url":"https://api.github.com/users/easmith2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/easmith2/2.3_testing","description":null,"fork":false,"url":"https://api.github.com/repos/easmith2/2.3_testing","forks_url":"https://api.github.com/repos/easmith2/2.3_testing/forks","keys_url":"https://api.github.com/repos/easmith2/2.3_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easmith2/2.3_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easmith2/2.3_testing/teams","hooks_url":"https://api.github.com/repos/easmith2/2.3_testing/hooks","issue_events_url":"https://api.github.com/repos/easmith2/2.3_testing/issues/events{/number}","events_url":"https://api.github.com/repos/easmith2/2.3_testing/events","assignees_url":"https://api.github.com/repos/easmith2/2.3_testing/assignees{/user}","branches_url":"https://api.github.com/repos/easmith2/2.3_testing/branches{/branch}","tags_url":"https://api.github.com/repos/easmith2/2.3_testing/tags","blobs_url":"https://api.github.com/repos/easmith2/2.3_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easmith2/2.3_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easmith2/2.3_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/easmith2/2.3_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easmith2/2.3_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/easmith2/2.3_testing/languages","stargazers_url":"https://api.github.com/repos/easmith2/2.3_testing/stargazers","contributors_url":"https://api.github.com/repos/easmith2/2.3_testing/contributors","subscribers_url":"https://api.github.com/repos/easmith2/2.3_testing/subscribers","subscription_url":"https://api.github.com/repos/easmith2/2.3_testing/subscription","commits_url":"https://api.github.com/repos/easmith2/2.3_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/easmith2/2.3_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/easmith2/2.3_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/easmith2/2.3_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/easmith2/2.3_testing/contents/{+path}","compare_url":"https://api.github.com/repos/easmith2/2.3_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easmith2/2.3_testing/merges","archive_url":"https://api.github.com/repos/easmith2/2.3_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easmith2/2.3_testing/downloads","issues_url":"https://api.github.com/repos/easmith2/2.3_testing/issues{/number}","pulls_url":"https://api.github.com/repos/easmith2/2.3_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/easmith2/2.3_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/easmith2/2.3_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easmith2/2.3_testing/labels{/name}","releases_url":"https://api.github.com/repos/easmith2/2.3_testing/releases{/id}","created_at":"2015-06-24T17:10:56Z","updated_at":"2015-06-24T17:10:56Z","pushed_at":"2015-06-28T15:35:19Z","git_url":"git://github.com/easmith2/2.3_testing.git","ssh_url":"git@github.com:easmith2/2.3_testing.git","clone_url":"https://github.com/easmith2/2.3_testing.git","svn_url":"https://github.com/easmith2/2.3_testing","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"easmith2:master","ref":"master","sha":"c53b08bf6fc066e3b95615a6122f8a1c2befc0d7","user":{"login":"easmith2","id":12895987,"avatar_url":"https://avatars.githubusercontent.com/u/12895987?v=3","gravatar_id":"","url":"https://api.github.com/users/easmith2","html_url":"https://github.com/easmith2","followers_url":"https://api.github.com/users/easmith2/followers","following_url":"https://api.github.com/users/easmith2/following{/other_user}","gists_url":"https://api.github.com/users/easmith2/gists{/gist_id}","starred_url":"https://api.github.com/users/easmith2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easmith2/subscriptions","organizations_url":"https://api.github.com/users/easmith2/orgs","repos_url":"https://api.github.com/users/easmith2/repos","events_url":"https://api.github.com/users/easmith2/events{/privacy}","received_events_url":"https://api.github.com/users/easmith2/received_events","type":"User","site_admin":false},"repo":{"id":37998806,"name":"2.3_testing","full_name":"easmith2/2.3_testing","owner":{"login":"easmith2","id":12895987,"avatar_url":"https://avatars.githubusercontent.com/u/12895987?v=3","gravatar_id":"","url":"https://api.github.com/users/easmith2","html_url":"https://github.com/easmith2","followers_url":"https://api.github.com/users/easmith2/followers","following_url":"https://api.github.com/users/easmith2/following{/other_user}","gists_url":"https://api.github.com/users/easmith2/gists{/gist_id}","starred_url":"https://api.github.com/users/easmith2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easmith2/subscriptions","organizations_url":"https://api.github.com/users/easmith2/orgs","repos_url":"https://api.github.com/users/easmith2/repos","events_url":"https://api.github.com/users/easmith2/events{/privacy}","received_events_url":"https://api.github.com/users/easmith2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/easmith2/2.3_testing","description":null,"fork":false,"url":"https://api.github.com/repos/easmith2/2.3_testing","forks_url":"https://api.github.com/repos/easmith2/2.3_testing/forks","keys_url":"https://api.github.com/repos/easmith2/2.3_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easmith2/2.3_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easmith2/2.3_testing/teams","hooks_url":"https://api.github.com/repos/easmith2/2.3_testing/hooks","issue_events_url":"https://api.github.com/repos/easmith2/2.3_testing/issues/events{/number}","events_url":"https://api.github.com/repos/easmith2/2.3_testing/events","assignees_url":"https://api.github.com/repos/easmith2/2.3_testing/assignees{/user}","branches_url":"https://api.github.com/repos/easmith2/2.3_testing/branches{/branch}","tags_url":"https://api.github.com/repos/easmith2/2.3_testing/tags","blobs_url":"https://api.github.com/repos/easmith2/2.3_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easmith2/2.3_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easmith2/2.3_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/easmith2/2.3_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easmith2/2.3_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/easmith2/2.3_testing/languages","stargazers_url":"https://api.github.com/repos/easmith2/2.3_testing/stargazers","contributors_url":"https://api.github.com/repos/easmith2/2.3_testing/contributors","subscribers_url":"https://api.github.com/repos/easmith2/2.3_testing/subscribers","subscription_url":"https://api.github.com/repos/easmith2/2.3_testing/subscription","commits_url":"https://api.github.com/repos/easmith2/2.3_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/easmith2/2.3_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/easmith2/2.3_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/easmith2/2.3_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/easmith2/2.3_testing/contents/{+path}","compare_url":"https://api.github.com/repos/easmith2/2.3_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easmith2/2.3_testing/merges","archive_url":"https://api.github.com/repos/easmith2/2.3_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easmith2/2.3_testing/downloads","issues_url":"https://api.github.com/repos/easmith2/2.3_testing/issues{/number}","pulls_url":"https://api.github.com/repos/easmith2/2.3_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/easmith2/2.3_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/easmith2/2.3_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easmith2/2.3_testing/labels{/name}","releases_url":"https://api.github.com/repos/easmith2/2.3_testing/releases{/id}","created_at":"2015-06-24T17:10:56Z","updated_at":"2015-06-24T17:10:56Z","pushed_at":"2015-06-28T15:35:19Z","git_url":"git://github.com/easmith2/2.3_testing.git","ssh_url":"git@github.com:easmith2/2.3_testing.git","clone_url":"https://github.com/easmith2/2.3_testing.git","svn_url":"https://github.com/easmith2/2.3_testing","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1"},"html":{"href":"https://github.com/easmith2/2.3_testing/pull/1"},"issue":{"href":"https://api.github.com/repos/easmith2/2.3_testing/issues/1"},"comments":{"href":"https://api.github.com/repos/easmith2/2.3_testing/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/easmith2/2.3_testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/easmith2/2.3_testing/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/easmith2/2.3_testing/statuses/0f6d75c346257f6742166e4061fc76a562e11c71"}}}}