{"action":"opened","issue":{"url":"https://api.github.com/repos/ecomonitoring/ecomonitoring/issues/12","repository_url":"https://api.github.com/repos/ecomonitoring/ecomonitoring","labels_url":"https://api.github.com/repos/ecomonitoring/ecomonitoring/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ecomonitoring/ecomonitoring/issues/12/comments","events_url":"https://api.github.com/repos/ecomonitoring/ecomonitoring/issues/12/events","html_url":"https://github.com/ecomonitoring/ecomonitoring/issues/12","id":386138377,"node_id":"MDU6SXNzdWUzODYxMzgzNzc=","number":12,"title":"Сделать класс-событие","user":{"login":"resetius","id":2862690,"node_id":"MDQ6VXNlcjI4NjI2OTA=","avatar_url":"https://avatars3.githubusercontent.com/u/2862690?v=4","gravatar_id":"","url":"https://api.github.com/users/resetius","html_url":"https://github.com/resetius","followers_url":"https://api.github.com/users/resetius/followers","following_url":"https://api.github.com/users/resetius/following{/other_user}","gists_url":"https://api.github.com/users/resetius/gists{/gist_id}","starred_url":"https://api.github.com/users/resetius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resetius/subscriptions","organizations_url":"https://api.github.com/users/resetius/orgs","repos_url":"https://api.github.com/users/resetius/repos","events_url":"https://api.github.com/users/resetius/events{/privacy}","received_events_url":"https://api.github.com/users/resetius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T10:56:48Z","updated_at":"2018-11-30T10:56:48Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Нужно сделать класс, представляющий событие\r\n```\r\nclass Event:\r\n   def __init__(...):\r\n      self.name = ...\r\n      self.value = ...\r\n      self. = ....\r\n```\r\nЗачем? Не очень хорошо в разных частях программы лазить в словарь. Словарь это нечто, что приходит от пользователя, мы должны в одном месте программы прочитать его и взять нужные поля, а если чего-то нет, то вернуть ошибку."}}
{"actor":{"display_login":"resetius"}}