{"action":"opened","issue":{"url":"https://api.github.com/repos/lemonsweets/oystercard/issues/12","labels_url":"https://api.github.com/repos/lemonsweets/oystercard/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/lemonsweets/oystercard/issues/12/comments","events_url":"https://api.github.com/repos/lemonsweets/oystercard/issues/12/events","html_url":"https://github.com/lemonsweets/oystercard/issues/12","id":103284888,"number":12,"title":"Saving the entry station","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-26T14:37:40Z","updated_at":"2015-08-26T14:37:40Z","closed_at":null,"body":"Well done for getting this far! By now you have an oyster card that has a balance, can be topped up and touched in, and has a couple of extra features. Let's extend its functionality by adding support for recording journeys.\n\nOur goal is to enable the card to record the entire history of all journeys. However, let's start with a small step: make the card remember the current entry station.\n\nUpdate your Oystercard class to make the card remember the entry station of the current journey.\n\n## Skills you will learn:\n- S200: Selectively disable RSpec tests.\n\n## Interview questions you may expect:\n- I201: What is the `nil` value in Ruby? How can you check a variable is nil? What happens if nil is used in a conditional expression (`if/unless`)?\n- I202: Why would you want to temporarily disable some tests (make them pending)?\n\n## To complete this challenge:\n- [ ] Write a test that expects the card to remember the entry station after the touch in\n- [ ] Update the `touch_in` method to accept the entry station as a string argument\n- [ ] Update existing tests to pass a station to the `touch_in` method\n- [ ] Make the card forget the entry station on touch out by setting it to `nil`\n- [ ] Use RSpec `be` matcher to test for `nil` value\n- [ ] Expose `entry_station` instance variable using an attribute reader\n\n## Suggested resources:\n- [True, False and Nil](http://www.skorks.com/2009/09/true-false-and-nil-objects-in-ruby/)\n- [Make tests pending in RSpec](https://www.relishapp.com/rspec/rspec-core/v/2-0/docs/pending/pending-examples)\n- [Ruby instance variables](https://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/45-more-classes/lessons/110-instance-variables)\n- [RSpec predicate matchers](https://www.relishapp.com/rspec/rspec-expectations/v/3-3/docs/built-in-matchers/predicate-matchers)"}}