{"action":"created","issue":{"url":"https://api.github.com/repos/qutheory/fluent/issues/34","repository_url":"https://api.github.com/repos/qutheory/fluent","labels_url":"https://api.github.com/repos/qutheory/fluent/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/qutheory/fluent/issues/34/comments","events_url":"https://api.github.com/repos/qutheory/fluent/issues/34/events","html_url":"https://github.com/qutheory/fluent/pull/34","id":154842931,"number":34,"title":"Enhancement Entity static entity property","user":{"login":"Evertt","id":1267282,"avatar_url":"https://avatars.githubusercontent.com/u/1267282?v=3","gravatar_id":"","url":"https://api.github.com/users/Evertt","html_url":"https://github.com/Evertt","followers_url":"https://api.github.com/users/Evertt/followers","following_url":"https://api.github.com/users/Evertt/following{/other_user}","gists_url":"https://api.github.com/users/Evertt/gists{/gist_id}","starred_url":"https://api.github.com/users/Evertt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evertt/subscriptions","organizations_url":"https://api.github.com/users/Evertt/orgs","repos_url":"https://api.github.com/users/Evertt/repos","events_url":"https://api.github.com/users/Evertt/events{/privacy}","received_events_url":"https://api.github.com/users/Evertt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/qutheory/fluent/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"Evertt","id":1267282,"avatar_url":"https://avatars.githubusercontent.com/u/1267282?v=3","gravatar_id":"","url":"https://api.github.com/users/Evertt","html_url":"https://github.com/Evertt","followers_url":"https://api.github.com/users/Evertt/followers","following_url":"https://api.github.com/users/Evertt/following{/other_user}","gists_url":"https://api.github.com/users/Evertt/gists{/gist_id}","starred_url":"https://api.github.com/users/Evertt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evertt/subscriptions","organizations_url":"https://api.github.com/users/Evertt/orgs","repos_url":"https://api.github.com/users/Evertt/repos","events_url":"https://api.github.com/users/Evertt/events{/privacy}","received_events_url":"https://api.github.com/users/Evertt/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-05-14T09:01:35Z","updated_at":"2016-05-14T15:49:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qutheory/fluent/pulls/34","html_url":"https://github.com/qutheory/fluent/pull/34","diff_url":"https://github.com/qutheory/fluent/pull/34.diff","patch_url":"https://github.com/qutheory/fluent/pull/34.patch"},"body":"In the spirit of requiring as little as possible from classes that implement the Entity protocol, I’ve made it optional to implement the static `entity` variable. If you choose to not implement it then the default implementation returns the name of your class.\r\n\r\nNow if we also implement the `Unbox` and `Wrap` libraries then an entity can become as minimal as:\r\n\r\n```swift\r\nclass Tag: Entity {\r\n    var id: String?\r\n    var label: String\r\n\r\n    init(unboxer: Unboxer) {\r\n        id    = unboxer.unbox(\"id\")\r\n        label = unboxer.unbox(\"label\")\r\n    }\r\n}\r\n```\r\n\r\nIf I hear that you guys like this PR then I'll merge it. :-)"},"comment":{"url":"https://api.github.com/repos/qutheory/fluent/issues/comments/219227397","html_url":"https://github.com/qutheory/fluent/pull/34#issuecomment-219227397","issue_url":"https://api.github.com/repos/qutheory/fluent/issues/34","id":219227397,"user":{"login":"tannernelson","id":1342803,"avatar_url":"https://avatars.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tannernelson","html_url":"https://github.com/tannernelson","followers_url":"https://api.github.com/users/tannernelson/followers","following_url":"https://api.github.com/users/tannernelson/following{/other_user}","gists_url":"https://api.github.com/users/tannernelson/gists{/gist_id}","starred_url":"https://api.github.com/users/tannernelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannernelson/subscriptions","organizations_url":"https://api.github.com/users/tannernelson/orgs","repos_url":"https://api.github.com/users/tannernelson/repos","events_url":"https://api.github.com/users/tannernelson/events{/privacy}","received_events_url":"https://api.github.com/users/tannernelson/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T15:49:47Z","updated_at":"2016-05-14T15:49:47Z","body":"This seems like a great change. \r\n\r\nDo you have to add an `override` keyword now if you implement `entity` yourself? "}}