{"action":"opened","issue":{"url":"https://api.github.com/repos/learn-co-curriculum/oo-banking/issues/19","repository_url":"https://api.github.com/repos/learn-co-curriculum/oo-banking","labels_url":"https://api.github.com/repos/learn-co-curriculum/oo-banking/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-curriculum/oo-banking/issues/19/comments","events_url":"https://api.github.com/repos/learn-co-curriculum/oo-banking/issues/19/events","html_url":"https://github.com/learn-co-curriculum/oo-banking/issues/19","id":153689359,"number":19,"title":"issue: no separate #reject_transfer needed in this code","user":{"login":"nicolefederici","id":12520518,"avatar_url":"https://avatars.githubusercontent.com/u/12520518?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolefederici","html_url":"https://github.com/nicolefederici","followers_url":"https://api.github.com/users/nicolefederici/followers","following_url":"https://api.github.com/users/nicolefederici/following{/other_user}","gists_url":"https://api.github.com/users/nicolefederici/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolefederici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolefederici/subscriptions","organizations_url":"https://api.github.com/users/nicolefederici/orgs","repos_url":"https://api.github.com/users/nicolefederici/repos","events_url":"https://api.github.com/users/nicolefederici/events{/privacy}","received_events_url":"https://api.github.com/users/nicolefederici/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-09T01:36:20Z","updated_at":"2016-05-09T01:36:20Z","closed_at":null,"body":"The way the tests/errors are written, it seems like the exercise is asking for a separate #reject_transfer method. I could be wrong and just not know how to sling this code, but I tried everything, and then what worked was \r\n\r\n\r\ndef execute_transaction\r\n    if self.status == \"pending\"\r\n      if @sender.balance - amount <= 0\r\n        @status = \"rejected\"\r\n        return \"Transaction rejected. Please check your account balance.\"\r\n      else\r\n        @sender.balance = sender.balance - amount \r\n        @receiver.balance = receiver.balance + amount\r\n        @status = \"complete\"\r\n      end\r\n    end\r\n  end"}}