{"action":"opened","issue":{"url":"https://api.github.com/repos/lemonsweets/oystercard/issues/7","labels_url":"https://api.github.com/repos/lemonsweets/oystercard/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/lemonsweets/oystercard/issues/7/comments","events_url":"https://api.github.com/repos/lemonsweets/oystercard/issues/7/events","html_url":"https://github.com/lemonsweets/oystercard/issues/7","id":101399718,"number":7,"title":"Deduct the money","user":{"login":"lemonsweets","id":12461822,"avatar_url":"https://avatars.githubusercontent.com/u/12461822?v=3","gravatar_id":"","url":"https://api.github.com/users/lemonsweets","html_url":"https://github.com/lemonsweets","followers_url":"https://api.github.com/users/lemonsweets/followers","following_url":"https://api.github.com/users/lemonsweets/following{/other_user}","gists_url":"https://api.github.com/users/lemonsweets/gists{/gist_id}","starred_url":"https://api.github.com/users/lemonsweets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemonsweets/subscriptions","organizations_url":"https://api.github.com/users/lemonsweets/orgs","repos_url":"https://api.github.com/users/lemonsweets/repos","events_url":"https://api.github.com/users/lemonsweets/events{/privacy}","received_events_url":"https://api.github.com/users/lemonsweets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T11:22:29Z","updated_at":"2015-08-17T11:22:29Z","closed_at":null,"body":"By now you have a card that can hold a balance and be topped up. However, unless we can use it to spend money it's not of much use. We should also have a mechanism for deducting money from it.\n\nWrite the `deduct` method that will reduce the balance by a specified amount using test-driven approach. \n\n## Skills you will learn:\n- S140: Create a simple RSpec test\n\n## To complete this challenge:\n- [ ] Write a test for the `deduct` method, see it fail\n- [ ] Implement the method, see the test pass\n\n## Suggested resources:\n- [RSpec](http://rspec.info/)\n- [TDD on Wikipedia](https://en.wikipedia.org/wiki/Test-driven_development)\n- [RubyMonk](https://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/45-more-classes/lessons/110-instance-variables)"}}