{"action":"opened","issue":{"url":"https://api.github.com/repos/IuryAlves/pycrc/issues/5","repository_url":"https://api.github.com/repos/IuryAlves/pycrc","labels_url":"https://api.github.com/repos/IuryAlves/pycrc/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/IuryAlves/pycrc/issues/5/comments","events_url":"https://api.github.com/repos/IuryAlves/pycrc/issues/5/events","html_url":"https://github.com/IuryAlves/pycrc/issues/5","id":186153292,"number":5,"title":"Implement the Finite State Machine","user":{"login":"IuryAlves","id":1934268,"avatar_url":"https://avatars.githubusercontent.com/u/1934268?v=3","gravatar_id":"","url":"https://api.github.com/users/IuryAlves","html_url":"https://github.com/IuryAlves","followers_url":"https://api.github.com/users/IuryAlves/followers","following_url":"https://api.github.com/users/IuryAlves/following{/other_user}","gists_url":"https://api.github.com/users/IuryAlves/gists{/gist_id}","starred_url":"https://api.github.com/users/IuryAlves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IuryAlves/subscriptions","organizations_url":"https://api.github.com/users/IuryAlves/orgs","repos_url":"https://api.github.com/users/IuryAlves/repos","events_url":"https://api.github.com/users/IuryAlves/events{/privacy}","received_events_url":"https://api.github.com/users/IuryAlves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-30T18:28:39Z","updated_at":"2016-10-30T18:28:39Z","closed_at":null,"body":"The `Finite State Machine`that are in `core/fsm.py` has the responsilibity to transform the output from `core/parser.py` in a structure that represents a CRC card:\r\n\r\n```json\r\n{\r\n   \"classes\":{\r\n      \"class_name\": {\r\n         \"responsibilities\": [\r\n\r\n         ],\r\n         \"collaborators\": [\r\n\r\n         ]\r\n      }\r\n   }\r\n}\r\n```\r\n\r\nThe FSM will have the following states:\r\n\r\n* `get_responsibility_from_docstrings`\r\n* `get_responsibility_from_methods`\r\n*  `get_collaborators_from_docstring`\r\n* `get_collaborators_from_class`\r\n\r\n\r\nOnly `get_responsibility_from_docstrings` and  `get_collaborators_from_docstring` will be implemented in the first release.\r\n\r\nDiagram:\r\n\r\n![pycrc_fsm](https://cloud.githubusercontent.com/assets/1934268/19838801/e0279f8c-9ebd-11e6-9a0e-d58d2abee44c.png)\r\n"}}
{"actor":{"display_login":"IuryAlves"}}