{"action":"created","issue":{"url":"https://api.github.com/repos/segunadeleye/ruby_track/issues/20","labels_url":"https://api.github.com/repos/segunadeleye/ruby_track/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/segunadeleye/ruby_track/issues/20/comments","events_url":"https://api.github.com/repos/segunadeleye/ruby_track/issues/20/events","html_url":"https://github.com/segunadeleye/ruby_track/issues/20","id":60643137,"number":20,"title":"Exercise 22: Name - Raise","user":{"login":"segunadeleye","id":9962321,"avatar_url":"https://avatars.githubusercontent.com/u/9962321?v=3","gravatar_id":"","url":"https://api.github.com/users/segunadeleye","html_url":"https://github.com/segunadeleye","followers_url":"https://api.github.com/users/segunadeleye/followers","following_url":"https://api.github.com/users/segunadeleye/following{/other_user}","gists_url":"https://api.github.com/users/segunadeleye/gists{/gist_id}","starred_url":"https://api.github.com/users/segunadeleye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segunadeleye/subscriptions","organizations_url":"https://api.github.com/users/segunadeleye/orgs","repos_url":"https://api.github.com/users/segunadeleye/repos","events_url":"https://api.github.com/users/segunadeleye/events{/privacy}","received_events_url":"https://api.github.com/users/segunadeleye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Shruti2791","id":7158914,"avatar_url":"https://avatars.githubusercontent.com/u/7158914?v=3","gravatar_id":"","url":"https://api.github.com/users/Shruti2791","html_url":"https://github.com/Shruti2791","followers_url":"https://api.github.com/users/Shruti2791/followers","following_url":"https://api.github.com/users/Shruti2791/following{/other_user}","gists_url":"https://api.github.com/users/Shruti2791/gists{/gist_id}","starred_url":"https://api.github.com/users/Shruti2791/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shruti2791/subscriptions","organizations_url":"https://api.github.com/users/Shruti2791/orgs","repos_url":"https://api.github.com/users/Shruti2791/repos","events_url":"https://api.github.com/users/Shruti2791/events{/privacy}","received_events_url":"https://api.github.com/users/Shruti2791/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-03-11T11:14:13Z","updated_at":"2015-03-21T17:33:37Z","closed_at":null,"body":"https://github.com/segunadeleye/ruby_track/blob/master/Ex22/bin/main.rb\r\nhttps://github.com/segunadeleye/ruby_track/blob/master/Ex22/lib/name.rb\r\nhttps://github.com/segunadeleye/ruby_track/blob/master/Ex22/lib/empty_field_error.rb\r\nhttps://github.com/segunadeleye/ruby_track/blob/master/Ex22/lib/first_name_error.rb\r\n\r\nCreate a class 'Name' with two attributes firstname and lastname. Neither of them can be blank and the first letter of firstname must be capital. Implement using 'raise'.Try using custom Exceptions."},"comment":{"url":"https://api.github.com/repos/segunadeleye/ruby_track/issues/comments/84406034","html_url":"https://github.com/segunadeleye/ruby_track/issues/20#issuecomment-84406034","issue_url":"https://api.github.com/repos/segunadeleye/ruby_track/issues/20","id":84406034,"user":{"login":"Shruti2791","id":7158914,"avatar_url":"https://avatars.githubusercontent.com/u/7158914?v=3","gravatar_id":"","url":"https://api.github.com/users/Shruti2791","html_url":"https://github.com/Shruti2791","followers_url":"https://api.github.com/users/Shruti2791/followers","following_url":"https://api.github.com/users/Shruti2791/following{/other_user}","gists_url":"https://api.github.com/users/Shruti2791/gists{/gist_id}","starred_url":"https://api.github.com/users/Shruti2791/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shruti2791/subscriptions","organizations_url":"https://api.github.com/users/Shruti2791/orgs","repos_url":"https://api.github.com/users/Shruti2791/repos","events_url":"https://api.github.com/users/Shruti2791/events{/privacy}","received_events_url":"https://api.github.com/users/Shruti2791/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T17:33:37Z","updated_at":"2015-03-21T17:33:37Z","body":"1) Why can't we keep the validation in the validate method as before and just call it here in initialize ?\r\n2) We need to print the first and last name."}}