{"action":"created","issue":{"url":"https://api.github.com/repos/adharmonics/guides/issues/4","labels_url":"https://api.github.com/repos/adharmonics/guides/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/adharmonics/guides/issues/4/comments","events_url":"https://api.github.com/repos/adharmonics/guides/issues/4/events","html_url":"https://github.com/adharmonics/guides/pull/4","id":78305315,"number":4,"title":"Update README.md","user":{"login":"germsvel","id":3245976,"avatar_url":"https://avatars.githubusercontent.com/u/3245976?v=3","gravatar_id":"","url":"https://api.github.com/users/germsvel","html_url":"https://github.com/germsvel","followers_url":"https://api.github.com/users/germsvel/followers","following_url":"https://api.github.com/users/germsvel/following{/other_user}","gists_url":"https://api.github.com/users/germsvel/gists{/gist_id}","starred_url":"https://api.github.com/users/germsvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germsvel/subscriptions","organizations_url":"https://api.github.com/users/germsvel/orgs","repos_url":"https://api.github.com/users/germsvel/repos","events_url":"https://api.github.com/users/germsvel/events{/privacy}","received_events_url":"https://api.github.com/users/germsvel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-20T00:25:04Z","updated_at":"2015-05-20T17:37:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/adharmonics/guides/pulls/4","html_url":"https://github.com/adharmonics/guides/pull/4","diff_url":"https://github.com/adharmonics/guides/pull/4.diff","patch_url":"https://github.com/adharmonics/guides/pull/4.patch"},"body":"Add Class Structure to Ruby Guide"},"comment":{"url":"https://api.github.com/repos/adharmonics/guides/issues/comments/103970337","html_url":"https://github.com/adharmonics/guides/pull/4#issuecomment-103970337","issue_url":"https://api.github.com/repos/adharmonics/guides/issues/4","id":103970337,"user":{"login":"crberube","id":5851331,"avatar_url":"https://avatars.githubusercontent.com/u/5851331?v=3","gravatar_id":"","url":"https://api.github.com/users/crberube","html_url":"https://github.com/crberube","followers_url":"https://api.github.com/users/crberube/followers","following_url":"https://api.github.com/users/crberube/following{/other_user}","gists_url":"https://api.github.com/users/crberube/gists{/gist_id}","starred_url":"https://api.github.com/users/crberube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crberube/subscriptions","organizations_url":"https://api.github.com/users/crberube/orgs","repos_url":"https://api.github.com/users/crberube/repos","events_url":"https://api.github.com/users/crberube/events{/privacy}","received_events_url":"https://api.github.com/users/crberube/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T17:37:28Z","updated_at":"2015-05-20T17:37:28Z","body":"Again, I feel like we should follow the official guides that syntax-checking tools in ruby use (such as rubocop or hound). The guide states: Avoid class << self except when necessary, e.g. single accessors and aliased attributes.\r\n\r\nclass << self is useful if you need to make a private class method for example, because you can't do that otherwise. However some downsides to class << self if that if you have a lot of methods it is not immediately clear they are class methods because the containing block could be off screen. It also makes it harder to search for class methods: you can't just grep for ```self.```.\r\n\r\nclass << self also sets self to the class (singleton class) inside the block, something that you may not want to do. In reality, even though they act similarly they are not the same thing."}}