{"comment":{"url":"https://api.github.com/repos/ZmartGroup/zmartcase/comments/10847865","html_url":"https://github.com/ZmartGroup/zmartcase/commit/de3998f0c96f41a34e60181cdf13451ef67376fb#commitcomment-10847865","id":10847865,"user":{"login":"Agowan","id":239752,"avatar_url":"https://avatars.githubusercontent.com/u/239752?v=3","gravatar_id":"","url":"https://api.github.com/users/Agowan","html_url":"https://github.com/Agowan","followers_url":"https://api.github.com/users/Agowan/followers","following_url":"https://api.github.com/users/Agowan/following{/other_user}","gists_url":"https://api.github.com/users/Agowan/gists{/gist_id}","starred_url":"https://api.github.com/users/Agowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agowan/subscriptions","organizations_url":"https://api.github.com/users/Agowan/orgs","repos_url":"https://api.github.com/users/Agowan/repos","events_url":"https://api.github.com/users/Agowan/events{/privacy}","received_events_url":"https://api.github.com/users/Agowan/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"de3998f0c96f41a34e60181cdf13451ef67376fb","created_at":"2015-04-22T14:20:03Z","updated_at":"2015-04-22T14:20:03Z","body":"Sen finns det även attr_accessor, attr_reader samt attr_writer\r\nVilket i sin tur gör att man kan förkorta din kod med \r\n```ruby\r\nattr_accessor :category\r\nattr_reader   :body, :subject, :mail_body, :mail_to_address\r\n\r\n#Creates a new mail\r\ndef initialize(subject, body, to_address,from_address)\r\n  @mail_subject      = subject\r\n  @mail_body         = body\r\n  @mail_to_address   = to_address\r\n  @mail_from_address = from_address\r\nend\r\n```"}}